Then when he says, "I have confidence in you in the Lord that you will not be of another mind," he removes the obstacle on the part of God Who offers His help to this end. And he mentions a twofold help: one as to the deceivers; the other as to the trouble makers. He says therefore, "I have confidence in you in the Lord that you will not be of another mind." As if to say: I have told you not to obey the deceivers and "I have confidence in you:" "I rejoice that in all things I have confidence in you" (2 Cor 7:16); "But, dearly beloved, we trust better things of you and nearer to salvation" (Heb... 6:9). I have confidence, I say, in this, namely, "that you will not be of another mind" than what I have taught you—"but though we or an angel from heaven preach a Gospel to you besides that which we have preached to you, let him be anathema" (1:8); "Fulfill ye my joy, that you be of one mind" (Phil 2:2)—and this with God's help. Hence he says, "in the Lord" God working: "And such confidence we have through Christ towards God" (2 Cor 3:4), because the Lord will give you a mind according with the standard of the Catholic Faith: "It is good to have confidence in the Lord rather than to have confidence in a man" (Ps 117:8).
As to the trouble makers, he says, "he that troubleth you shall bear the judgment, whosoever he be," i.e., he that perverts you from right order so as to be turned from spiritual to corporeal things, whereas it should be the contrary: "Yet that was not first which was spiritual, but that which is natural; afterwards that which is spiritual" (1 Cor 15:46).
Therefore, "he shall bear the judgment", i.e., he will undergo damnation. For as one who urges another to good is rewarded—"They that instruct many to justice shall shine as stars for all eternity" (Dan. 12:3)—so one who urges another to evil is condemned: "Because thou hast troubled us, the Lord trouble thee this day" (Jos. 7:25); "Curst be he that maketh the blind to wander out of his way" (Deut 27:18). And this, "whosoever he be", i.e., whatever his dignity, he will not be spared.
But Porphyry and Julian censure Paul for presumption, and assert that in saying this he defames Peter (since he wrote above that he withstood him to his face) so that the meaning would be: "whosoever he be", i.e., even if it be Peter, he would be punished. But as Augustine says, one should not believe that Paul was calling down a curse on the Prince of the Church—for it is written in Exodus (22:28): "Thou shalt not curse the prince of thy people"—or that Peter committed an offence worthy of damnation. Therefore the Apostle is speaking of someone else who, coming from Judea, claimed to be a disciple of the important apostles and with that authority he and other false teachers were subverting the Galatians, "because of false brethren unawares brought in" (2:4).
Source: Commentary on Galatians