All the Law and the Prophets depend upon these two great commands of God; and both find their basis in love: love of God, love of others.
Obviously, Jesus loves His Father enough to obey Him, sacrificing His own human life for the purpose of God — that is our salvation: redemption, sanctification, glorification. Jesus often speaks of loving His friends enough to die for them. And, after speaking of this, He does indeed die for them and for us.
Your neighbor may be friend, may be enemy — but, you are commanded to love him whichever way he treats you. Your love of neighbor is a small reflection of the love which Jesus pours out on you. Your love of God the Father is tiny in measure when compared to Jesus’ love of His Father.
Love does no harm; and does not push its own way. “Keep loving one another earnestly, since love covers a multitude of sins.” (1 Peter 4: 8)