She didn't put him OVER the railing, she sat him on the railing, so he could get a better view. You see people do it all the time, without thinking of what might happen.