If you want to be perfect.Jesus is not teaching salvation by a work. Rather, He is touching on the one thing keeping the young ruler from trusting and following Him. See Romans 3:21-24 and Ephesians 2:8-9. If he truly fulfilled
love your neighbor as yourself(Matt. 19:19; Lev. 19:18), he would gladly give his wealth to the poor.
You will have treasure in heaven.See Matthew 6:19-21.