Normal social behavior requires that we be able to recognize identities in spite of change. Unless we can do so there can be no human society as we know it.
Every society and religion has rules for both have moral laws. And the essence of morality consists as in art of drawing the line somewhere.