You are equating the foreknowledge of God with the man's act of disobedience. Adam didn't have to sin; he chose to sin.
Gen 2:17 in plain language simply says "this you will not eat; if you do eat it, you will die for sure." It's a conditional statement.
***You are equating the foreknowledge of God with the man’s act of disobedience. Adam didn’t have to sin; he chose to sin. ***
Fact - God created a tree in the garden
Fact - God told Adam not to eat of the tree or he would die
Fact - God therefore established the ability to sin and the consequences of sin
Fact - God set the rules for man
Fact - Man broke the rules
Fact - Man sinned because God provided the opportunity, the ability, and the consequences
Fact - God knew ahead of time that man would sin
Fact - God set in motion BEFORE THE CREATION OF THE UNIVERSE the whole plan of salvation
Fact - I like writng the word FACT
Fact - you are now bored with this
So then, God planted the seed of disobedience in man’s mind by telling him he had a choice since up to that time man had no experience with disobedience. The only previous command of God was positive, “be fruitful and replenish”. It was not “conditional” and there was no adverse consequence attached to it.
What is intersting about Gen. 2:17, “But of the tree of the knowledge of good and evil, thou shalt not eat of it: for in the day that thou eatest thereof thou shalt surely die.” is that just by introducing the concept of disobedience, God has already instructed man in the concept of good and evil, the “eating” was just the test.
God also introduces the concept of death into a pristine situation. There has been no death or dieing when this instruction is given so man has no categories to understand it or its significance. God telling man about death based on foreknowledge in this situation would be meaningless to man unless he had been previously taught its meaning.