Then when he says, not at all meaning, he corrects the false interpretation of the above words: first, he states what he does mean; secondly, he draws a conclusion (v. 10b).
In regard to the first it should be noted that the Corinthians had given two false interpretations to his statement. First, they supposed that he was referring to fornicators who are unbelievers. He corrects this when he says: not at all meaning to say that you shall avoid communicating with the fornicators of this world. He refers to unbelievers by the name "world" in keeping with Jn (1:21): "The world has not known him"...; "The world did not know God through wisdom" (1 Cor 1:21). Secondly, they falsely supposed that the Apostle's prohibition referred only to fornicators and not to other sinners. To correct this he now adds: or the greedy, who unjustly retain what belongs to others: "No one who is covetous (which is serving of idols) has any inheritance in the kingdom of Christ and of God" (Eph 5:5), or robbers, who violently plunder the property of others; or idolaters, against whom it says in Wis (14:27): "The worship of abominable idols is the cause, and the beginning and the end of all evil." Consequently, the Apostle is prohibiting fellowship not only with fornicators but with all other sinners. It should be noted that by fornication a person sins against himself; by greed and robbery against his neighbor, and by the worship of idols he sins against God. Consequently, in mentioning these he includes every type of sin.
Then when he says, since then, he gives the reason for this clarification, saying: since then, i.e., if he had meant the fornicators of this world, you would need to go out of the world, for the whole world is filled with them; hence you could not avoid them except by going out of this world: "The whole world is in the power of the evil one" (1 Jn 5:19). Or, you would need to go out of the world, could mean: since you should have been separated from the sinners of this world from the time of your conversion, there is no need to advise you further about this, for it says in Jn (15:19): "I chose you out of the world." Or again: you would need to go out of the world, i.e., by dying, for it is better for man to die than consent to sinners in sin; hence it says below (9:15): "For I would rather die than have any one deprive me of my ground for boasting."
Source: Commentary on 1 Corinthians