How to prevent villains in the workplace?

Have a sense of self-protection and don't talk about yourself at will.

Try to make others think that you can't be violated at will, and you can't be weak when you fight back.

Improve your ability, improve your importance, and make the villain feel that making friends with you is far more beneficial than setting you up.