It's difficult to understand when we take a shortsighted world view instead of a Biblical view. We will never be able to logically comprehend all of God's ways regardless of how satan tries to make us believe we can. God is all knowing, past, present and future, if we dropped an axe into the sea of His wisdom, it would never reach the bottom (some really smart guy said that once ;)).
He is the creator, it is all His. In His grace, we were all given free will and He has made himself known to us all, so that no man has an excuse. The folks prior to Noah greatly and dangerously took advantage of His ultimate kindness, yep, His kindness. Did you know that God created the world with the right amount of atmospheric pressure, the perfect composition of 10 gases to create the air we breathe, created the formula for the water we drink and the list goes on. He created a perfect home for humans, and then instead of following the all knowing, they chose to follow the father of all lies, to follow the most evil one- all their choice, too.
There will always be consequences for wrong doing, in fact remaining in the wrongdoings always leads to some sort of death.
I want to point out the 2 most deceitful lies satan will convince people of believing:
1). God does not exist
2) God is the bad one, who doesn't love or care for us.
Both lies, don't be deceived!!