Now the Scripture foresaw that God would justify the Gentiles by faith and foretold the good news to Abraham, saying, All the nations will be blessed in you.
For all who [rely on] the works of the law are under a curse, because it is written: Cursed is everyone who does not continue doing everything written in the book of the law.
The purpose was that the blessing of Abraham would come to the Gentiles in Christ Jesus, so that we could receive the promise of the Spirit through faith.
Now the promises were spoken to Abraham and to his seed. He does not say "and to seeds," as though referring to many, but and to your seed, referring to one, who is Christ.
Why the law then? It was added because of transgressions until the Seed to whom the promise was made would come. [The law] was ordered through angels by means of a mediator.
Is the law therefore contrary to God's promises? Absolutely not! For if a law had been given that was able to give life, then righteousness would certainly be by the law.