The only way to protect yourself is to have nothing to do with toxic people.
If you're an adult you can do as some have and estrange them, if you've been estranged by someone who is toxic or who has been manipulated by their toxic partner, then be thankful they are no longer in your life.