Dear client,
you can exercise your right to self-defense but within the restrictions of section 99, IPC. Moreover, the entire incident must be looked at very closely to decide such situations. My advice would be to get a good criminal lawyer in your case as you might have overstepped while exercising your right.
Thank you