Is it forbidden to fight to defend your possessions from a thief? From the last few days i have been trying to meditate to generate equanimity.

My question is simple: If i practice equanimity, compassion, loving kindness, forgiveness, there would always be people who would take advantage of that right? For instance if someone comes to steal from me, i should give him my belongings right? Like thats the Buddhist way right? Fighting and resisting is forbidden right?

And he informs 10 other thieves about this kind man. How to be wise in this situation where you know people take advantage of your compassion, niceness?
Resisting or protecting what you have is not forbidden. But you shouldn't kill. It is perfectly fine to say no to someone who is trying to take advantage of you. It's perfectly fine to have  a non-lethal security system for your house. That does not get in the way of Brahmavihara.