they would sound a warning upon detecting any intrusion , such as a carnivorous animal , and give it a healthy electrical shock and grav-push away from the area , effectively keeping him safe from any natural dangers .