So are you saying that Jesus was mistaken when he answered the lawyer?
Not at all. Have you heard the word "pre-evangelism" before? That's what Jesus opened the conversation with.
The man called Jesus "good" and Jesus pointed out that no one is good except God. That would mean that the man himself was not good, although it seems from what he said that he thought he was keeping the Law, and expected to go to heaven because of it. That's why Jesus had to "break the ice" with him at his own level. He thought being 'good' would earn him heaven.
Here's the deal. A person would have to be perfect (good) by keeping ALL of the Law in order to go to heaven. But think of what that would mean; they wouldn't need Christ to die for their sins, because they wouldn't have any.
Yet, the Bible is clear that Jesus Christ died for the sins of everyone. 2 Cor 5:14,15, Heb 2:9, 1 John 2:2
So after the man listed all the commandments that he thought he was keeping, Jesus nailed him on the very first commandment. Instead of loving God with all his heart, soul, mind and strength, what did he love the most? Let's let the context speak:
Matt 19:21 Jesus answered, “If you want to be perfect, go, sell your possessions and give to the poor, and you will have treasure in heaven. Then come, follow me.”
So, how did the man react to what Jesus said?
22 When the young man heard this, he went away sad, because he had great wealth.
So, what Jesus did was demonstrate to the man that he wasn't even keeping the first commandment, which is the greatest commandment.
We know that what Jesus opened the conversation with cannot be evangelization because of what the Bible says:
Rom 3:20 - Therefore
no one will be declared righteous in God’s sight by the works of the law; rather, through the law we become conscious of our sin.
Gal 2:16 - know that a person is not justified by the works of the law, but by faith in Jesus Christ. So we, too, have put our faith in Christ Jesus that we may be justified by faith in Christ and not by the works of the law, because by the works of the law no one will be justified.