Nobody should be playingwith a gun - loaded or otherwise.
When I was a child, I used to have nightmares that I was alone in my parent's van ... and it would start moving, and I had to unbuckle my seatbelt, get behind the steering wheel, and avoid crashing into various obstacles.
Given that a young child wouldn't be able to engage the gears, an automatic stays in park and a manual either remains in neutral or, if parked in gear (mine always is), it wouldn't start at all. Either way, either it doesn't move or rolls slowly. In the absence of a steep hill, max damage might be a dented fender. Guns kill people. So the gun would be infinitely worse.