I believe that it creates shocks to try and start the heart up again after a heart attack. (why the sticky pads are put with the heart in the middle)
Answer:
By keeping a safe distance and watching their speed.