A poor translation, done by christians who had an telos in mind
Matt ch5 explains that the righteous teachings of YHVH will not disappear until heaven and earth disappear, or the stars disappear, not one stroke or one yud will disappear from the law, and whoever teaches so will be called the least in the kingdom, but whoever teach my Father's commandment will be called the greatest in heaven.
Romans 10:4 should read " For the goal at which the Torah ( Law is a very poor translation also) aims is the Messiah, who offers righteousness to everyone who trusts. For Moshe writes about the righteousness grounded in the Torah that "the person who does these things will attain life through them" Lev 18:5.
The topic is about trust not doing away with YWVH righteous commandments for all people to live a righteous life. Without Torah, His instructions, how do you know you are living life the way He wants you too.
Salvation has always been through your trust in Elohyim, take Avraham. Torah was to show you that you are unrighteous in G-ds eyes, He is a Holy G-d and does not associate Himself with sin, or people who continue to live in sin, or refuse to live a life in a righteous way, and think I believe in Jesus that means I am saved no matter what, wrong, it`s about G-d not Jesus. What does G-d require?. Righteousness