Given these important caveats, let's do the math on what remains, noting that the numbers are probably not precise and will change over time.
What we find is this:
One justified gun death per 2 accidental deaths.
Five justified deaths per accidental child death.
About 1000 illegal deaths per justified death.
About 100 suicides per justified death.
About 100 homicides per 2 justified deaths.
Those odds are way worse than flipping a coin. At least then a gun would have a 50% chance of killing a bad guy.
A person pulling the trigger on a gun is most likely to be shooting themselves, then their family, then commit a felony, then way, way, way down the line, if they're lucky, they hit a bad guy.
To add some more painful perspective, you are more likely to be shot by a hunter than by a terrorist. Hunters accidentally shoot about 1000 people a year, roughly 50 times more than terrorists. About 500 people a year are killed by mass shooters. But these numbers fluctuate rapidly.
The odds of shooting a bad guy without a gun are zero. But some may consider having a gun a bit like drinking a steady regimen of Drano to prevent parasites that may not ever actually appear. It could work.
The reality seems to be that when our bullets don't wind up in non-human animals or street signs, then when you use one to shoot someone, about 99 times out of a 100, you will commit a felony, shoot yourself, or shoot someone by accident. In roughly one out of a hundred cases, you shoot the bad guy.