God's omniscience + Christ being purposed from before the foundation of the world...
I cannot call it a design flaw or weakness. Man was intended to find their life in Christ -
Romans 11:32
But first
God created this
And God said, Let us make man in our image, after our likeness: and let them have dominion over the fish of the sea, and over the fowl of the air, and over the cattle, and over all the earth, and over every creeping thing that creepeth upon the earth.
Genesis 1:26 KJV
So God created man in his own image, in the image of God created he him; male and female created he them.
Genesis 1:27 KJV
Then the creation given do inion of earth provoked gods wrath like this
For the wrath of God is revealed from heaven
against all ungodliness and unrighteousness of men, who hold the truth in unrighteousness; because that which may be known of God is manifest in them; for God hath shewed it unto them. because that, when they knew God, they glorified him not as God, neither were thankful; but became vain in their imaginations, and their foolish heart was darkened. Professing themselves to be wise, they became fools,
And
changed the glory of the uncorruptible God into an image made like to corruptible man, and to birds, and fourfooted beasts, and creeping things. Wherefore God also gave them up to uncleanness through the lusts of their own hearts, to dishonour their own bodies between themselves: who changed the truth of God into a lie, and worshipped and served the creature more than the Creator, who is blessed for ever. Amen.
For this cause God gave them up unto vile
affections: for even their women did change the natural use into that which is
against nature: and likewise also the men, leaving the natural use of the woman,
burned in their lust one toward another; men with men
working that which is unseemly, and receiving in themselves that recompence of their error which was meet.
And even as
they did not like to retain God in their knowledge, God gave them over to a reprobate mind, to do those things which are not convenient; being filled with all unrighteousness, fornication, wickedness, covetousness, maliciousness; full of envy, murder, debate, deceit, malignity; whisperers, backbiters, haters of God, despiteful, proud, boasters, inventors of evil things, disobedient to parents, without understanding, covenantbreakers, without natural affection, implacable, unmerciful: who knowing the judgment of God, that they which commit such things are worthy of death, not only do the same, but have pleasure in them that do them.
Romans 1:18-19, 21-32 KJV
Mankind's nature was corrupted because they rejected Gods knowledge and nature he freely gave them and exchanged truth for a lie
Then Israel was given a covenant to make them Gods kingdom on earth but they broke it repeatedly and worshipped false gods the whole old testament but for a solemn few generations eventually
The earth mourneth and fadeth away, the world languisheth and fadeth away, the haughty people of the earth do languish.
The earth also is defiled under the inhabitants thereof; because they have transgressed the laws, changed the ordinance, broken the everlasting covenant. Therefore hath the curse devoured the earth, and they that dwell therein are desolate: therefore the inhabitants of the earth are burned, and few men left.
Isaiah 24:4-6 KJV
The earth shall reel to and fro like a drunkard, and shall
be removed like a cottage; and the transgression thereof shall be heavy upon it; and it shall fall, and not rise again.
Isaiah 24:20 KJV
Then Afterwards God did this so that all people of faith can be saved before the curse if fulfilled
Like he did for Noah before the floor , God sent this ark out into all the world to save all creatures who will hear it and believe
And he said unto them, Go ye into all the world, and preach the gospel to every creature. He that believeth and is baptized shall be saved; but he that believeth not shall be damned.
Mark 16:15-16 KJV
The gospel is what restores the right understanding into our mind and then our heart because we believe we keep it and have faith this redeems us just as the wrong knowledge corrupted us
God bound all men over to sin so the gospel would later be preached to all for salvation