Creation spoiled
By the time we get to Genesis Chapter 6 we read, "And God saw that the wickedness of man was great in the earth, and that every inclination of the thought of his heart was only evil all the time." Therefore, something went wrong with God's creation.
To find out what went wrong we turn back to Genesis Chapter 3. When God had created this perfect man He placed him in the Garden of Eden "to work it and take care of it." Genesis Ch. 2:15 The Lord said to this perfect man, "You are free to eat from any tree in the garden, but you must not eat from the tree of the knowledge of good and evil, for when you eat of it you will surely die." Genesis Ch. 2:16-17
In this perfect world God placed a perfect man and gave him the most precious of all gifts - the gift of freedom. God gave to man the freedom of choice. Adam was placed in this wonderful garden and given total freedom - freedom to choose or to reject; freedom to obey or to disobey Him.
Freedom is meaningless if there is only one possible way to go - if there is no choice there is no freedom. If there is only one road leading to my house, there is no choice for friends to travel, but if there are two roads, then there is immediately the choice of which way they wish to travel. Freedom immediately suggests the right to choose, to select, to decide the road you wish to take, or the course of action you wish to carry out.
God gave Adam the freedom to choose - he was quite at liberty to choose the right path or the wrong path - choose it because he wanted to take that course of action, not because there was no other thing he could do.
Genesis Ch. 3:6 tells us what happened, it says, "When the woman saw that the fruit of the tree was good for food and pleasing to the eye, and also desirable for gaining wisdom, she took some and ate. She also gave some to her husband, who was with her, and he ate it."
Satan sees Adam and Eve in this beautiful garden having daily fellowship with God. So his first move is to make Eve feel that God is rather unfair by not allowing them to have happiness in the garden; by not allowing them to eat of every tree in the garden. Eve sees the fruit and has the craving to eat the fruit - "the lust of the flesh" then she sees that it was good for food - "the lust of the eye". And Satan makes this wonderful promise that she "will be like God, knowing good and evil."
So Satan led the woman to disobey God and she "gave some to her husband, who was with her, and he ate it."
They both found themselves naked before God, not only physically naked, but also far worse; both had guilty consciences for they were aware of the fact that with a free will they had disobeyed God.
God permitted Adam and Eve to eat the fruit of all the trees in the garden except that of "the tree of knowledge of good and evil". When they freely ate of the fruit of that tree they disobeyed God by breaking God's law.