How do you avoid toxic people? ?

Anonymous
I had a co worker that got fired and I kept being kind to him.

he is a 35+years old nerdy guy sometimes tell weird jokes and was into political things, a bit extreme too...

I started feeling weird because he kept asking me do I have boyfriend so I ignored his messages on purpose and yesterday I told him I have a boyfriend just to make him stop thinking there was an opportunity.

Then he called me slut , ‘pretend good girl’ and started scolding me , criticized my work and said he should have told my boss to fire me 😑when he was the one who got fired. (The most important is I haven’t done anything to confuse him. When he was flirty to female co workers I just ignore or be like I don’t understand at all. )

I regret being friend with people like that.
I even think I should have avoid these type of people from the very beginning. ☹️☹️☹️ Those time I just thought acting friendly to everyone is a way to avoid office drama..

Do anyone had similar experience? How do u avoid toxic people without being scolded behind?
Updates
+1 y
The worst thing is there’s two guys in my company like making flirty jokes. One is my manager, the other one is that guy. That guy is the worst. He’ve been calling me sweetie / asking horny questions and expecting answers. (Those questions are really gross)
I really don’t understand why such people exist:(
How do you avoid toxic people? ?
5 Opinion