Habit is a second nature which prevents us from knowing the first, of which it has neither the cruelties nor the enchantments.
You could adjust the punishment to fit the infraction. Even a small fine would be enough to bring an errant government to heel.