Having disclosed the pre-eminence of the gift of grace and explained it with a human example, the Apostle here censures the Galatians, who scorned this grace, for being ungrateful for so great a gift.
First, he censures them for ingratitude;
Secondly, he excuses himself, explaining that he does not do this out of hatred or spite (v. 12b).
As to the first he does three things:
First, he calls to mind their earlier state;
Secondly, he extols and commends the gift they have received (v. 9);
Thirdly, he amplifies the sin committed (v. 9): "how turn you again to the weak and needy elements?"
...
He says therefore: "But then indeed, not knowing God, you served them who, by nature, are not gods." As if to say: You are now sons and heirs through God; but then indeed, when you were heathens—"You were heretofore darkness, but now light in the Lord" (Eph 5:8)—not knowing God, through lack of faith, you served with the worship of latria, them who by nature are not gods, but by the opinion of men: "You know that when you were heathens, you went to dumb idols, according as you were led" (1 Cor 12:2); "They served the creature rather than the Creator." (Rom 1:25). His statement, "who by nature are not gods," serves to refute the Arians who said that Christ, the Son of God, is not God by nature. For if this were true, it would not be right to render Him latria, and whoever rendered it would be an idolater.
But someone might object that we adore the flesh and humanity of Christ; consequently, we are idolaters. I answer that even though we adore the flesh or humanity of Christ, we adore it as united to the person of the divine Word, Who is a divine hypostasis. Hence, since adoration is due to a person of the divine nature, whatever is adored in Christ is done without error.
Source: Commentary on Galatians