Of course not everyone can or will do the right thing without being threatened with punishment... but I think it's possible to make the world a better place in general if we can at least tone down the amount of bad things happening, even if it requires "threatening" the people that need it to behave.
Otherwise I think laws wouldn't exist.