That is just myth considering the fact that there different versions of them in different Abrahamic religions, namely Judaism, Christianity and Islam. There are similar myth even between aboriginal Australian. The story is however a Sumerian Myth in origin (you can google it).
The story is however problematic because Wise God would never put a being with capacity to perform sin in a sinful position forever then punish them for performing the sin. In nut shell, it is very clear what is outcome of putting a person in a sinful position forever: the person eventually perform the sin especially when there is a temptation made by Satan involved in the story.