Amy, Jesus directly said, "but if thou wilt enter life, keep the commandments" (Mat 19:17)
Jesus wasn't lying, and he was not using a figure of speech, he was answering the direct question, "what good thing shall I do, that I may have eternal life?"
You might look at it a different way. A couple chapters later Jesus summed up all the all the law:
Jesus said unto him, Thou shalt love the Lord thy God with all thy heart, and with all thy soul, and with all thy mind. This is the first and great commandment. (Matthew 22:37-38)
--Do you love God?
He that loves God will keep my commandments (1John 2)
What are his commandments?
Jesus answered and said unto him, Verily, verily, I say unto thee, Except a man be born again, he cannot see the kingdom of God. (John 3:3)
I said therefore unto you, that ye shall die in your sins: for if ye believe not that I am he, ye shall die in your sins. (John 8:24)
Verily, verily, I say unto you, He that heareth my word, and believeth on him that sent me, hath everlasting life, and shall not come into condemnation; but is passed from death unto life. (John 5:24)