From what I know deadly force is justified if you're in danger of death or grave bodily harm. Rape is grave bodily harm. Therefore if somebody is trying to rape you or a loved one by law you are justified in killing them.Yes, it is 100% legal to shoot a rapist but it isn't 100% legal to KILL a rapist if you didn't feel that your life was at stake.