Answer: This law works according to a totally different principle. I don’t need to love myself in order to love others. After all, this is an egoistic trick! In fact, nothing works this way.
The ego can work properly only if it is controlled by altruism. This is a very high level: the second half of the spiritual ladder.
The rule “love thy friend as thyself” is fulfilled when a person’s egoistic attributes begin to work with the intention of in order to bestow. This is the second part of the ascent up the spiritual ladder.
The first part, “don’t do unto others what is hateful to you,” exists when you don’t use your ego at all.
From the Kabbalah Lesson in Russian 7/3/16
What Is Hateful To You, Do Not Do To Your Fellow Men