I think the deterrent is empathy for others - that when someone feels empathy for another person they are far less likely to do that person harm.

The real question is...how do you teach and instill in people a sense of empathy?