But he threatens a severe sentence, saying: I warned those who sinned before and all the others. Here he first suggests the judicial process to be followed, which requires that three warnings have been given. In regard to this he says: I have warned you before twice, as I warned them when present, namely, when I was among you, so I warn them now, that is, while absent. Thus he warns them three times. I warn, I say, those who sinned before and all the others. As if to say: I warn everyone. Secondly, having given the warning, he threatens the sentence; hence, he says, that if I come again I will... not spare them. As if to say: those who sinned I spared the first time; but if they sin again, or have not done penance, I will not spare them again. This would be just, because a person who is forgiven once and sins again, if he were forgiven, would grow in malice and become insolent. Hence the wise man says in Prov. (13:24): "He that spares the rod hates his son." As a result the Church has decreed that three admonitions must be given before it declares one excommunicated, because it happens that some, although they are in sin and offend, are corrected by a mere word of warning and make satisfaction. But if they are not influenced by warnings, the severity of sentence must be applied, lest they grow more insolent: "Because sentence against an evil deed is not executed speedily, the heart of the sons of men is fully set to do evil" (Ec. 8:11).
Source: Commentary on 2 Corinthians