Your unsafe if the guy with the gun gets the drop on you or if you have a gun out and hesitate to use it.
Most people without guns or with guns hesitate.
One of the things I taught all my kids is if you think your endanger don't hesitate.
There is a space about 2 feet from you that if you feel endangered and are unarmed don't let anyone enter. At that point in time you have to make up your mind to act and don't stop until they are on the floor then