Is Jesus Preaching Legalism When He Says "if You Love Me, Keep My Commands"?
This verse, I believe, is one which can be easily misunderstood. We can assume that Jesus is saying something like, “prove your love for me by obeying what I tell you to do.” We can develop a works-based salvation from a verse such as this one. But there is something different happening in this passage.
Source: biblestudytools.com