I think that when the punishment is strong for a certain bad act, then less people will do this bad act especially when they see the punishment.
On the other side if the punishment is weak then it will not stop the people from doing this bad act.