at 6 ft. At six feet, if you are standing still, it takes you .50 second to lunge and slash or stab me. It takes me .30 second to react, jump back, and shoot you.
A knife, against a gun, better be a BIG surprise, from 3 ft away, or you are going to get shot, if the guy knows much of anything at all about such things.