Yeah, its your right to protect yourself. No doubt. But I would argue that using a gun to do it is not a good idea because bullets tend to kill people. You can't come back from killing a person or getting killed.
You can come back from pepper spray or tazing.
Violence is for dark age thugs.
However, if thugs insist on acting like thugs, people have a right to protect/defend themselves.