We cannot love by commandment. We can only love by the gift of love which comes in and through the indwelling HolySpirit.
Jesus commanded the rich young ruler to try to live up to this in and of himself knowing that he could not.
Jesus came to set the performance bar so high that all of us would fail and recognize our need for His Grace.