eg- Gal 23 But before faith came, we were kept under the law, shut up unto the faith which should afterwards be revealed. 24 Wherefore the law was our schoolmaster to bring us unto Christ, that we might be justified by faith.

and- Words of paul, going as far as calling the Commandments a past curse-

Ga 3:13 –
Christ hath redeemed us from the curse of the law, being made a curse for us: for it is written, Cursed is every one that hangeth on a tree:

But my issue is- How do we relate these/this with Jesus’ personal teachings on the law-

1Jo 5:3 –
For this is the love of God, that we keep his commandments: and his commandments are not grievous

Matthew 5:17-20 –
17 Think not that I am come to destroy the law, or the prophets: I am not come to destroy, but to fulfil. 18 For verily I say unto you, Till heaven and earth pass, one jot or one tittle shall in no wise pass from the law, till all be fulfilled. 19 Whosoever therefore shall break one of these least commandments, and shall teach men so, he shall be called the least in the kingdom of heaven: but whosoever shall do and teach them, the same shall be called great in the kingdom of heaven.

and- Mark 10:17-31 –
17 And when he was gone forth into the way, there came one running, and knelt to him, and asked him, Good Master, what shall I do that I may inherit eternal life? 18 And Jesus said unto him, Why callest thou me good? there is none good but one, that is, God. 19 Thou knowest the commandments, Do not commit adultery, Do not kill, Do not steal, Do not bear false witness, Defraud not, Honour thy father and mother

Joh 14:15 –
If ye love me, keep my commandments.

So the big question is- How do we reconcile these two opposite seeming positions-
Do we follow Jesus, who it seems never belittled the commandments, and said He Never preached in secret.