"I will only truly have left this school when none here are loyal to me."
"Dumbledore would have been happier than anybody to think that there was a little more love in this world."
[Frodo]: "What a pity that Bilbo did not stab that foul creature, when he had a chance!"
[Gandalf]: "Pity? It was Pity that stayed his hand. Pity, and Mercy: not to strike without need."
If it had inspired or directed the development of the legend, then certainly the Ring would have been seized and used against Sauron; he would not have been annihilated but enslaved, and Barad-dûr would not have been destroyed but occupied. Saruman, failing to get possession of the Ring, would in the confusion and treacheries of the time have found in Mordor the missing links in his own researches into Ring-lore, and before long he would have made a Great Ring of his own with which to challenge the self-styled Rule of Middle-earth. In that conflict both sides would have held hobbits in hatred and contempt: they would not long have survived even as slaves.
The Star Wars series takes this one step further, showing that love and loyalty can inspire evil behaviour. In The Return of the Jedi, the wicked Emperor uses Luke Skywalker's loyalty and love towards his endangered friends to fill him with vengeful rage, all the better to inspire his shift to the Dark Side. The prequels build on this, showing how Anakin Skywalker's love for Padme lead to his corruption.
Padmé: "Are you allowed to love? I thought that was forbidden for a Jedi."
Anakin: "Attachment is... forbidden. Possession is forbidden. Compassion, which I would define as unconditional love, is central to a Jedi's life... so, you might say, we are encouraged to love."
"You have heard that it was said, 'Love your neighbour and hate your enemy.' But I tell you: Love your enemies and pray for those who persecute you, that you may be sons of your Father in heaven. He causes his sun to rise on the evil and the good, and sends rain on the righteous and the unrighteous. If you love those who love you, what reward will you get? Are not even the tax collectors doing that?"
- Matthew 5:43-46