The obstacle to fulfilling the above admonition is pride. And to exclude this he says, "For if any man think himself to be something, whereas he is nothing, he deceiveth himself."
He says therefore: Do as I say. But it sometimes happens that one does not carry another's burdens, because he prefers himself to others. Hence such a one said in Luke (18:11): "I am not as the rest of men, extortioners, unjust, adulterers." Therefore he says, "For if any man think himself to be something," i.e., through pride judge in his own mind that he is greater in comparison to a sinner, "whereas he is nothing... of himself", because whatever we are is from the grace of God, according to the saying of the Apostle: "But by the grace of God I am what I am" (1 Cor 15:10), anyone, I say, who acts thus "deceiveth himself", i.e., cuts himself off from the truth: "All nations are before him as if they had no being at all" (Is 40:17); "When you have done all these things that are commanded you, say: We are unprofitable servants: we have done that which we ought to do" (Lk 17:10).
Source: Commentary on Galatians