Then on the practical aspect he works at night or in the dark and has technological advantages (as well as ranged non-lethal weapons) over his enemies.
Speculating you could imagine he is pretty good at reading people and their reactions, and so has a rudimentary ability to avoid (not quite dodge) gunfire.
Sure, I think it is unrealistic that in, say, the films he avoids all the gunfire period. But it seems reasonable that he can avoid most of it with these advantages.
Such things are all possible in real life, but I expect you are right - you would end up shot.