A significant number of guns used in crimes are stolen from legal gun-owners. With legal guns less prevalent, the people you refer to would have less access to them as well. You could require better care in storage of guns, so that they can’t be stolen as easily. You could increase funding for combating illegal gun trafficking. I’m not saying these are good solutions to the issue, but there are a lot of things one could do through the law to help keep guns away from criminals.
They also can’t be stolen if they’re carried around by the owner and used to kill the person threatening people’s lives. Not enough finding out these days. Too many gang members expecting to just get a slap on the wrist. If they start dropping like flies we would hopefully see less gang members fucking around.