That isn't how nail guns work. In the 'sex dungeon' scene Malcolm threatens Boyd by firing a framing nail into the wood next to Boyd's head, from 6 feet away. All nail guns, pneumatic or electric, have built-in plate safety features, to prevent this very thing from happening. The firing mechanism must be pressed firmly against a surface, which disengages the safety, before the nail can be fired. Nail guns cannot simply be fired like a dart-spitting revolver.
First city shot is of San Francisco, CA not New York city.