You are not considering a third option. That God knew what could happen and is wise enough to deal with whatever man would choose to do.
To say that God only knew what "could happen" is to impune the all knowing nature of God. Was creating mankind just God flipping a coin to see what the result would be? Were God+ handicapping the outcome?
Supposed you told your one yr old son not to eat the candy you put on the table in front of him. Then your pet dog told him how great candy tasted and how you would not be mad if he ate it. He did. As a result you punish your child for the rest of your life and his. Welcome to the short version of the garden of eden story.
Neither your one yr old nor Adam had ever heard a lie. Neither your one yr old nor Adam had ever been deceived by anything or anyone. Adam had no idea that he was already eternal until he ate the wrong fruit. He certainly did not understand he would lose his eternal life for eating the forbidden fruit so he had no opportunity to make a moral choice between obedience + eternal life and a sudden mortality. Adam did not know the difference between good and evil until AFTER he had eaten the fruit of the knowledge of good and evil. Thus, he did not know that disobeying God was evil as he did only after he gained the knowledge of good and evil.
Does this read more like a story written by ancient Hebrew writers, borrowing strongly from Mesopotamian origin stories or an accurate and historical story about a God+ that got creation wrong? Remember, God+ repented that they ever created mankind and every living thing in creation. Anger, regret and frustration are "characteristics" of the same God of creation of a few chapters earlier. Do you see God as a God of anger, regret and frustration that his grand plan went so wrong that He demanded a "do over"? According to Genesis, God+ must have also been angry, regretting and frustrated by a host of sexually lustful male members of Heaven who came to breed with earth women. I can see why that would make any creator angry, frustrated and revengeful.
On the other hand, did they build their Hebrew God from the same myths as did the Mesopotamian God myths? Afterall, the early civilizations were the Sumerians and that Akkadians each of which were founded "between the rivers" of the euphrates and tigris rivers exactly where the writes of Genesis put the garden of eden.
The gods of the Mesopotamians and the God+ of the Hebrews all exhibited the same foibles as humans. The God+ of Genesis is exactly like the human conceptualizations of the Mesopotamians. There was no single God in Mesopotamian myths either. Both the ancient mythical gods and the Hebrew created God share most of the same characteristics. Both get frustrated with the their creation. Both find one family to save via building a god designed boat on which their families and two of all the animals of the earth were placed. Both lived in the boat for a long time (Noah is the longest at 377 days.) Both land on mountains about 300 miles apart. Both send out birds to see if there was any dry land doves and ravens in both stories. Both stories have the survivors building an altar and offering a sacrifice. Both get a promise that God or gods will never destroy man by water again.
So, to me Genesis looks much more like an origin story lifted from the much more ancient origin story that had been told for a thousand years before the Hebrew's had even invented their own written narrative capable language around 800 BC.
Whether you see this as a case of "divine inspiration" or ancient myths repurposed, the outcome is the same. Both agree mankind was created by God. In the earliest interactions between man and God things did not go well and mankind was lucky to exist at all. The mesopotamians told their theological stories in 5 great volumes leaving behind thousands of clay tablets. The Hebrews produced 5 great theological volumes on the same God/Man subject. Genesis, Exodus, Leviticus, Number and Deuteronomy.