I guess the question is, how close do you let someone get before you feel you are at risk?
Are you familliar with the 21 foot rule?
There was a Utah police study about it and the Portland Police Academy in Monmouth mentiones it.
The thought is that someone can cover 21 feet and stab you before you can react, draw, aim, and fire.
Here is a reference including some drills relating to it.