A quick-thinking legal gun owner turned the tables on an armed would-be robber in Detroit.

James Dockman, 49, was heading to dialysis treatment with his wife when he said a young man walked up to his vehicle and pulled a gun.

Dockman, who has a concealed carry permit, said he pulled out his 9mm Ruger and told the would-be robber, “Do you really want to [expletive] do this?”

“This guy had a gun on me, I got a gun on him, and I don’t wanna kill this kid, but I’m going home,” Dockman said.

The would-be robber said ‘have a nice day’ before he ran off, Dockman said.

After the encounter made headlines, some on social media actually criticized Dockman for hesitating and not pulling the trigger. 

MyFoxDetroit reported:

Viewer Rick Smith wrote "Do not play games when threatened. When confronted with a gun in a crime, eliminate the threat immediately without hesitation."

And Grant Laskaska wrote "Don't pull it unless you're going to use it."

"A lot of people said 'I would've shot him,'" James said. "Well you know what, when you're in my shoes let me know what you're going to do. Until you're in my shoes I don't give a (expletive) what you think."

Dockman said at the end of the day, he's glad the suspect is still alive and "prays to God he learned something from it."

Watch the report above.

MMA Fighter Hog-Ties Bank Robbery Suspect

Caught on Camera: Weight Lifting Grandma Tackles Purse Thief

Hapless Jewel Thief Breaks In, Gets Trapped in Store

Suspect Fails Miserably at Stealing an ATM