Why don't I have the right to imprison someone who's about to shoot another person in the head? What do I have the right to do? Kill them to prevent a murder? Beat them up? Shout a useless warning?
Furthermore, why are you deciding what rights I have in terms of defending myself or others in the first place?