That's... a wild take.
Your spouse is your partner. This is your primary relationship. If someone you know is treating them poorly, and you choose to retain that friendship because, you know "gee, they've always been cool to me," then you're being grievously disloyal to the person who should matter more than anyone else in your life.