Senior female here - I was told in CC class that I could basically shoot anyone approaching me and speaking in a loud voice.
Sad truth these days that you are perfectly in your right to defend yourself but you may still have to deal with the perps family or the perp himself (if he lived) in court. Of course, it is better to be alive and not assaulted.
Everything is scrutinized too from your firearm to the cartridge and bullet type that you use. Just be safe and be prepared.