Life Application Bible commentary says that there are three types of Laws in scripture:
Ceremonial Laws - These laws are specifically related to Israel’s worship. Their purpose is to point to Christ. Though we no longer follow and they are not necessary because of Christ resurrection, we are still bound by the principles behind them - To love and worship the Lord God. The Pharisees often broke these law which they taught.
The Civil Laws - These laws applied to daily living in Israel. The times and cultures are different so the principles again are what we need to be concerned about. They are a timeless guide for our conduct and we have a guide in Jesus as He showed how to live by these principles.
The Moral Laws - These laws are made up of many moral laws in scripture Old and new Testament and the Ten Commandments which were directly from God. God requires strict adherence to these commands. Moral laws reveal the nature and will of God and they still apply to us today. Jesus obeyed the moral law completely.
I want to conclude by saying from the other verses Jesus makes it clear that the Old Testament is inspired and fully reliable today and not one bit of it is false but completely infallible. In Jesus all was accomplished and fulfilled. We are to teach and live commandments as Jesus has guided us to and we need to be careful that we do it correctly or there will be consequences.
And last, we need to be more righteous than the Pharisees. They lived the letter of the Law without righteousness in their hearts. We who follow Christ are to be even more faithful to God and His Word but our hearts need to express the godliness and righteousness of Jesus Christ in living faithful to God’s Word.
The Gospel calls for us to believe that Jesus came and live that perfect life of obedience to God and His laws; that He was judged by those who hated Him and eventually was tortured and hung on a cross for crimes He did not commit (but it was our crimes for which He died on that cross); and that He arose from the dead having lay in that tomb three days, to live forevermore. He now calls us to believe in the Gospel truth about Him. If we are willing to repent of our sins (turn away from them) and place our faith in Him and be willing to follow Him, then we can be saved, we can know eternal life in heaven with God forever.