Then when he says, Do you not know, he clarifies what he had said: first, as to what is altogether unlawful; secondly as to what is unlawful but not expedient (v. 12). In regard to the first he does two things: first, he presents a question; secondly, he answers it (v. 9b).
First, therefore, he says: I have stated that you do wrong and defraud, which is to commit sin, but do you not know that the unrighteous will not inherit the kingdom of God? As if to say: you seem not to know this, as long as you do not give up your sin; whereas it says in Ps 6 (v. 8): "Depart from me all you workers of ev...il."
Then when he says, Do not be deceived, he determines the truth: first he shows the impious their danger; secondly he shows how they were snatched from this peril and feared falling into it again (v. 11).
First, therefore, he says: Do not be deceived, which is said with a purpose, because some have been deceived frequently about sinning with impunity, as it says in Wis (2:21): "Thus they reasoned, but they were led astray." For certain philosophers erred in believing that God does not have charge of human affairs, as it says in Zeph (1:12): "The Lord will not do good, nor will he do ill." But others, believing that faith alone is sufficient for salvation, according to Jn (11:26): "Whoever lives and believes in me shall never die"; others believing that they will be saved just by Christ's sacraments, on account of what is said in Mk (16:16): "He that believes and is baptized will be saved," and Jn (6:55): "He that eats my flesh and drinks my blood will have eternal life." Still others suppose that they can sin with impunity on account of the works of mercy they perform, inasmuch as it says in Lk (11:41): "Give for alms those things which are within you; and behold, everything is clean for you." But they do not understand that all these things are of no benefit without charity, for it says in 1 Cor (13:2ff): "If I have all faith; if I give away all I have to the poor, and I have not charity, I gain nothing." Therefore, he continues: sins contrary to charity exclude one from the kingdom of God, which charity alone permits one to enter, saying: neither fornicators, nor idolaters, nor adulterers, concerning whom Heb (13:4) says: "God will judge fornicators and adulterers"; nor homosexuals, of which it says in Gen (13:13): "The men of Sodom were wicked, great sinners against the Lord"; nor the greedy nor thieves, of whom Zech (5:3) says: "Everyone that steals shall be cut off henceforth"; nor drunkards, nor revilers, nor robbers will inherit the kingdom of God. For it says in Is (35:8): "And a highway shall be there, and it shall be called the Holy Way; the unclean shall not pass over it"; and in Rev (21:27): "But nothing unclean shall enter it, nor anyone who practices abominations." It should be noted that the vices mentioned here are the same as those mentioned in the previous chapter. But he added some in the category of lust, namely, adultery, and sins against nature, and thievery in the category of injustice.
Source: Commentary on 1 Corinthians