If you take a look at history, you will find that the understanding of what is good and evil has always existed before the individual religions. The religions were only invented by people afterwards, in order to express this idea.
As what we call genius arises out of the disproportionate power and size of a certain faculty, so the great difficulty lies in harmonizing with it the rest of the character.