Consequences are related to acquiring wisdom. But it is interesting to note that the longer consequences last, the less likely they are to result in wisdom rather they result in giving up. The best consequences are those that are decisive, clearly connected to the behavior that created them as outcomes, non negotiable and resolvable by changes in behavior. Other than that, consequences only serve to indulge the anger of those inflicting them.
The goal of consequences is the hope of wisdom. This is what determines if consequences are motivated by love or motivated by hate.