Love is a tricky word, one has to use reason in determining its intent. I love my wife; I love ice cream. I do not love ice cream as I love my wife, yet I desire them both. The Ten Commandments are how you should conduct yourself if you love God and others as yourself, and you would if you did.
This is why sin is committed in the heart and mind before acted out. It is why it takes two rights to make a right: you have to do the right thing for the right reason.
This is one concept that alone would bar eternal salvation by works, as works can be done for the wrong reason. They can be done out of charity, love, toward others or for self-interest. God judges the hearts, the reasons, men do things. Men are selfish, self-preserving, self-center, self-serving, self-gratifying, etc.
To make love directly one of the Ten Commandments, as some suggest, would have ensured failure. As it is, love is the pot of gold at the end of the rainbow, the enlightenment obtained by the seeker, the power to stay our fears, the strength that perseveres, finding God, knowing and understanding him, is finding love.
Jeremiah 9:24 But let him that glorieth glory in this, that he understandeth and knoweth me, that I am the LORD which exercise lovingkindness, judgment, and righteousness, in the earth: for in these things I delight, saith the LORD.
1 John 4:8 He that loveth not knoweth not God; for God is love.
He is the one who loves, is love, and desires that we find love, become love.
1 John 4:10 Herein is love, not that we loved God, but that he loved us, and sent his Son to be the propitiation for our sins.