Animals (snakes) are viewed as property by the law, so you don't gain any legal wiggle room just because it's alive and breathing. I suspect you would be well within your rights in most locals to use deadly force on an intruder who was attempting to abduct or otherwise injure your child. In this particular scenario, I'd prefer a bat over a gun, but that might just be me.