Notice what He said. IF YOU LOVE ME. Have you ever watched a person who is in love? They watch the person they're in love with to find out what makes them happy, then do those things joyfully because they know it will result in their loved one's happiness, not because they were given a list of commands to follow. Now, which comes first, keeping the commandments or loving Jesus? Secondly, why do you claim to love Jesus if you refuse His offer of salvation through faith?
This is why works based salvation fails, because it eclipses the role of faith. Instead of us realizing just how lost we really are and how badly we need something we do not and cannot ever deserve, we start thinking that if we just do a little bit more, it will outweigh the sin we're committing. If we just do these things, we can demand that God overlook our fallen state. The reality is, when it comes to salvation, we can't demand ANYTHING from God.
An illustration that destroys works-based salvation. Everyone is lined up on the beach in California and told that they will shortly be pushed into the ocean and will be expected to swim to Hawaii. Well, some of the people will simply sink and drown as soon as they can no longer touch the bottom. Others will be able to swim a few hundred yards, while some will be able to swim some miles into the ocean before tiring and drowning. No one will make it to Hawaii, correct? Now, off to the side is a cruise ship, plenty big enough for everyone, with Jesus leaning over the railing, calling everyone to grab hold of the life preservers He's tossing and let Him pull them onboard, then we're all going to Hawaii on the boat.
Think of it, it doesn't matter if you're the most hated person in history (someone who falls over and drowns immediately), or the most loved person in history (someone who swims 50 miles into the ocean before drowning), you need to grab the life preserver and get on the boat or you're not getting to Hawaii.