You don't think God foreknew His disappointment in man BEFORE the flood? What did He do, turn off His omniscience?
God knew Adam and Eve were going to sin before they did. After all, laws are only meant for one thing. To be broken.
Laws are meant for bad. Bad comes first, law comes second. If Adam and Eve had not yet sinned, yet God made a law against bad for them, bad was already in existence. That bad certainly CANNOT be equated as God the Creator of all things.
The following from Paul is all about the LAW given to Adam, and shows God knew EVERYTHING that was going to happen:
Rom 5:12-21
12 Therefore, just as sin entered the world through one man, and death through sin, and in this way death came to all men, because all sinned- 13 for before the law was given, sin was in the world.
Please note "before the law was given, sin was in the world." Verse 12 starts off talking about Adam on how sin came into the world. Verse 13 is a continuation of the same sentence of verse 12, so the context is absolutely the same, and the context is Adam.
So. BEFORE "Do Not Eat" was given (THE LAW), sin was in the world. That sin was Satan, already in adversary mode towards God.
But sin is not taken into account when there is no law.
This continued verse 13 explains why God did not destroy Satan right away. Because there was no bad prior to Satan, so there was no law. Satan's adversarial actions could not be taken into account because there was no law against it.
The context of Adam's sin against the very first law is maintained:
14. Nevertheless, death reigned from the time of Adam to the time of Moses, even over those who did not sin by breaking a command, as did Adam [Do Not Eat], who was a pattern of the one to come.
Death came as a result of Adam, even for those who did not break the law command of "Do not eat."
15 But the gift is not like the trespass [Do not eat]. For if the many died by the trespass of the one man [Do not eat], how much more did God's grace and the gift that came by the grace of the one man, Jesus Christ, overflow to the many!
Again, the law of "Do not eat" being broken by Adam is still the context.
16 Again, the gift of God is not like the result of the one man's sin [Do Not Eat]: The judgment followed one sin [Do Not Eat] and brought condemnation, but the gift followed many trespasses and brought justification.
Again, the law of "Do not eat" being broken by Adam is still the context.
17 For if, by the trespass of the one man [Do Not Eat], death reigned through that one man, how much more will those who receive God's abundant provision of grace and of the gift of righteousness reign in life through the one man, Jesus Christ.
Again, the law of "Do not eat" being broken by Adam is still the context.
18 Consequently, just as the result of one trespass [Do Not Eat] was condemnation for all men, so also the result of one act of righteousness was justification that brings life for all men. 19 For just as through the disobedience of the one man [Do Not Eat] the many were made sinners, so also through the obedience of the one man the many will be made righteous.
Again, the law of "Do not eat" being broken by Adam is STILL the context. Now, here is the proof that God knew Adam and Eve were going to fall by the hands of Satan:
20 The law [DO NOT EAT] was added so that the trespass might increase.
God gave the law to Adam and Eve so that the trespass would increase.
Yes, sin increased as Adam and Eve fell, all foreknown by God.
But where sin increased, grace increased all the more, 21 so that, just as sin reigned in death, so also grace might reign through righteousness to bring eternal life through Jesus Christ our Lord.
Again regarding law and no law:
Rom 4:15
15 because law brings wrath. And where there is no law there is no transgression.
Does it say law MAYBE brings wrath? No, "LAW BRINGS WRATH." Regarding Satan? "Where there is no law there is no transgression."
And on the flip side, where there IS LAW, there is transgression.
If God foreknew Adam and Eve to fall, He also foreknew His disappoinment in men at the time of the flood and revealed it in the 6th chapter of Genesis.