Let me tell all what Scripture says the purpose of the Ten Commandments of God was: To reveal sin (aka "Condemnation") and to show man that "We Need A Savior" because no 'man' (flesh) could keep THE LAW!
The Children of Israel thought they could do all that GOD commanded of them! Exodus 19:8 says "And all the people answered together, and said, All the LORD hath spoke WE WILL DO." So HE gave them "The Big Ten' which they thought they could keep! However, II Kings 17:15 says "And they rejected HIS statutes, and HIS covenant that HE made with their fathers..."
Therefore, THE LAW served it's purpose: To reveal 'sin' and to show 'man' HE NEEDED A SAVIOR! Ezekiel 22:30 says "And I sought for a man among them, that should make up the hedge, and stand in the gap before me for the land, that I should not destroy: but I found NONE." Therefore, the LORD had to come HIMSELF to "stand in the gap!"
I Timothy 3:16 says "And without controversy great is the mystery of godliness: GOD was "manifested in the flesh, justified in the Spirit, seen of angels, preached unto the Gentiles, believed on in the world, received up into glory." Witness Scripture: John 1:14!
Prior to HIS coming, THE LORD made promise of A NEW COVENANT wherein HE would "put HIS laws in our hearts and minds" (Jeremiah 31:33-34; Hebrews 8:10-12) and under the NEW COVENANT; NO MORE LAW because HE would "put HIS laws in our hearts and minds!" and (Jer 31:34) "..they shall teach no more every man his neighbor, and every man his brother, saying, Know the LORD; for they shall ALL no me from the least of them, to the greatest of them, saith the LORD..."
Under the NEW COVENANT which is a TOTALLY "SPIRITUAL" COVENANT because GOD "puts HIS laws in our hearts and minds" via the Holy Spirit (Acts 1:2) making IT "TOTALLY" Spiritual!
Scripture says the purpose of "The Big Ten" under THE NEW COVENANT "was" our SCHOOLMASTER! "But the Scripture hath concluded all under sin, that THE PROMISE by FAITH of Jesus Christ might be given to them that BELIEVE! BUT AFTER FAITH came, we were kept under THE LAW, SHUT UP "UNTO" the FAITH which should afterwards be revealed. Wherefore THE LAW "was" our SCHOOLMASTER to bring us "UNTO" Christ, that we might be justified by FAITH. BUT AFTER FAITH IS COME, WE ARE "NO LONGER UNDER A SCHOOLMASTER!"
Consequently, IF one has FAITH, they are "NO LONGER UNDER A SCHOOLMASTER" (aka THE LAW)!
"There is therefore now NO CONDEMNATION to them which are "IN" Christ Jesus, who walk not after the flesh, but after the Spirit. For the law of the Spirit of life in Christ Jesus hath made me FREE from the law of sin and death. For what THE LAW could not do, in that it was weak through the flesh, GOD sending his own Son in the likeness of sinful flesh and for sin, condemned sin in the flesh" (Romans 8:1-3)!