Snapping can feel sudden, scary, and confusing, but it's often a dog's last line of communication before a bite.