In the rich young ruler passage, Jesus tells him to sell all he has and give to the poor to show him that he is imperfect, flawed and can not keep all of the law, and therefore can not save himself by trying to keep the law. He needs to realize his need for the savior, that his works are flawed...