"Jehovah" was the Hebrew version of the Pagan Creator gods of mythical lore, and was the equivalant of Satan, who is nothing more than the negative half of duality. The Spirit of God must "die" in order to descend into matter, and this is the true meaning of the "death" that resulted from eating of the forbidden tree. It was part of the plan and necessary for dense matter to come into being. So when the New Testament says that Satan is the god of this world it isn't kidding. In order for a world to have free will it must have an adversary, and the adversary has to be defeated in order to be reunited with the spirit realm. This is the meaning of being "born again", the dense physical must "die" in order to ascend back to the higher dimensions.
The second chapter of Genesis was written centuries before the first by the Jahwist, who was quite honest in his approach, while the Elohist wrote the first chapter and introduced the deception of literalization while also editing the Jahwist chapter. The process of explaining how evil came into being is not an easy one. The Jahwist was honest in telling us that the world was not created perfect by a perfect God, but that it was created through violence and that it was not perfect but the ultimate plan was to to put man here to subdue it and perfect it. The Elohist was of the priesthood who needed to make man guilty for the imperfections of Creation and therefore needing a savior. The truth is that the first six days of Creation are speaking about Involution, which is the ideation process that took place in the mind of the Creator. The seventh day is when physical matter appeared and the process of Evolution began.
All the subsequent stories in the Bible are continuations or expansions of this metaphor. Ever notice how every time there needs to be a child born, the woman is barren and requires some sort of miracle to give birth?
It's not possible to fully explain all this in a few sentences, so I suggest a book called "Myths and Deceptions of the Bible" by Lloyd M. Graham. It is the most liberating book for anyone who has ever been captive to the Bible's priesthood-inspired suppression psychology.
PS