I think if you teach your kids about guns they will be much less likely to want to mess with them when they shouldn't. They are probably more attracted to guns if they just think they are taboo and mysterious.
If you take your kid out and teach them how to shoot and operate the gun they will no longer be as curious because they already know what they are about..
You can tell a kid all you want that guns are dangerous and not to be payed with but they don't really know. Take them out shooting and let them hear and see the BANG and the kick and then they KNOW they are dangerous and to be respected first hand.
Have them shoot a .22 while your at it. I am often surprised by how well and fast a kid can can learn to shoot.