God is supposed to be omniscient, all knowing. He supposed to know what your going to do before you do it.
So if He knew Adam and Eve would eat the forbidden fruit then why did He put the tree there in the first place?
If God had not known mankind would disobey His command, bringing sin and death through sin into creation, why does Scripture speak of Christ as the Lamb who was slain from the foundation of the world? All knowing God, before creating man, made Himself the remedy for the problem of sin/death. Therefore, He created man with complete autonomy (free will) for them to experience both good and evil. How could man know/understand pain/suffering through death or even what is good/love everlasting life without having experienced good and evil? Without knowing evil, man would never know death, but without knowing good man would also not know/experience God's love. Without this knowledge how/why would man trust in God for eternal life? There would be no reason if man had not been condemned to die.
Genesis 2:9 (KJV) And out of the ground made the LORD God to grow every tree that is pleasant to the sight, and good for food; the tree of life also in the midst of the garden,
and the tree of knowledge of good and evil.
Genesis 2:16-17 (KJV) And the LORD God commanded the man, saying,
Of every tree of the garden thou mayest freely eat: 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.
Genesis 3:5 (KJV) For
God doth know that in the day ye eat thereof, then your eyes shall be opened, and ye shall be as gods, knowing good and evil.
Genesis 3:22 (KJV) And the LORD God said, Behold, the man is become as one of us, to know good and evil: and now, lest he put forth his hand, and take also of the tree of life, and eat, and live for ever:
After man disobeyed God and ate from the forbidden tree of the knowledge of good and evil, man was driven out of the garden of Eden and God blocked the way to the tree of life making it impossible for man to freely eat of the tree of life and live forever. Prior to disobeying God, man could of his/her free will choose to eat and live forever. But once sin and death through sin came into creation the freedom to choose life forever was taken away from man. Knowing from before eternity the tree of life would be blocked from man, and mankind would not be able to freely choose God to live forever, God chose us (every born-again believer) IN CHRIST to be holy and without blame before Him in love. All whom He predestined unto adoption as children by Jesus Christ, according to the good pleasure of His will, Christ made us (born-again believers) accepted in the beloved.
Ephesians 1:4-14 (KJV) According as
he hath chosen us in him before the foundation of the world, that we should be holy and without blame before him in love: Having predestinated us unto the adoption of children by Jesus Christ to himself, according to the good pleasure of his will, To the praise of the glory of his grace, wherein he hath made us accepted in the beloved. In whom we have redemption through his blood, the forgiveness of sins, according to the riches of his grace; Wherein he hath abounded toward us in all wisdom and prudence;
Having made known unto us the mystery of his will, according to his good pleasure which he hath purposed in himself: That in the dispensation of the fulness of times he might gather together in one all things in Christ, both which are in heaven, and which are on earth;
even in him:
In whom also we have obtained an inheritance, being predestinated according to the purpose of him who worketh all things after the counsel of his own will: That we should be
to the praise of his glory, who first trusted in Christ. In whom ye also trusted, after that ye heard the word of truth, the gospel of your salvation: in whom also after that ye believed, ye were sealed with that holy Spirit of promise, Which is the earnest of our inheritance until the redemption of the purchased possession, unto the praise of his glory.
While mankind is still free to choose what manner and way of life they desire to live in this life, since the fall mankind is
not of their own free will able to choose eternal life apart from grace of God alone. For it is by grace through faith that man is eternally saved! Salvation (eternal life) from beginning to end is the gift of God for whosoever is born again.
Ephesians 2:8 (KJV) For
by grace are ye saved through faith; and that not of yourselves: it is the gift of God:
John 1:13 (KJV) Which
were born, not of blood, nor of the will of the flesh, nor of the will of man, but of God.