There seems to be much debate on this and yet the Source of salvation, the Expert, the One who created man, the One who spoke His Law from Mt. Sinai, the One who gave His life so that we might obtain salvation, did not equivocate, He did not even stutter...
Mat 5:17 Think not that I am come to destroy the law, or the prophets: I am not come to destroy, but to fulfil.
Mat 5: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.
Mat 5: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.
Mat 19:17 And he said unto him, Why callest thou me good? there is none good but one, that is, God: but if thou wilt enter into life, keep the commandments.
Joh 14:15 If ye love me, keep my commandments.
Joh 15:10 If ye keep my commandments, ye shall abide in my love; even as I have kept my Father's commandments, and abide in his love.
Joh 15:14 Ye are my friends, if ye do whatsoever I command you.
And what did He command?
Mat 19:17 And he said unto him, Why callest thou me good? there is none good but one, that is, God: but if thou wilt enter into life, keep the commandments.
What did He inspire the Apostle John to write?
1Jn 5:2 By this we know that we love the children of God, when we love God, and keep his commandments.
1Jn 5:3 For this is the love of God, that we keep his commandments: and his commandments are not grievous.
Now there are those who refuse to obey, that is between them and God, but Paul wrote about them...
Rom 8:7 Because the carnal mind is enmity against God: for it is not subject to the law of God, neither indeed can be.
The carnally minded are the enemy of God and cannot be subject to His Law.
So, either Christ knew what He was talking about or He didn't. You choose, I have already chosen.