Define "get in trouble."
Nobody "gets in trouble" for properly using force to defend themselves or others from harm to life and limb.
Where the "trouble" comes in is where there is doubt about how much force was necessary depending on the circumstances.
Whether a man would "get in trouble" for responding to sexual assault with force depends on the SPECIFIC set of circumstances and there are probably thousands of sets of circumstances that could go either way.
I'll give you two obvious examples.
1 - A man breaks into my house, grabs me, throws me down, pins me to the floor and tries to stick his _____ up my _____. I manage to get my gun and shoot him dead. No trouble there.
2 - A man breaks into my house, moves toward me in a threatening manner, I get my gun out, he sees it and runs away. I am unharmed but I shoot him in the back on his way out the door. Big trouble coming my way.
There's probably 50 shades of gray in between those two extremes that can be imagined.
You'll need to explain your question better.

