If you want to do a crime with a gun, you definitely don't want a legal one. That's just stupid.
And people intent on doing crimes most of the time don't really need guns for it, it is just suspicious to carry a gun around and if you are doing something shady you want to bring as little suspicion as possible. And adds charges for illegal gun possession in case you are caught with one.
Gun regulation is mostly to stop stupid people act stupidly with a gun they already lawfully own, to stop people who for various reasons shouldn't own a gun from owning one legally and also to cool down the police so that it doesn't feel it has to shoot suspects on sight. (Notice stress on the word "feel")
I am all for gun regulation, I just feel it is a bad example for regulation.