It's actually the opposite. Rare but harsh punishment doesn't deter crime a lot. However frequent but light punishments are very effective. After someone goes to prison for 10 years that person is already used to prison. You can no longer change the behaviour of such a person through further deterrents.