How did Noah avoid the corruption that had filled the earth during his generation? Look at the man that he was,
“This is the genealogy of Noah. Noah was a just man, perfect in his generations. Noah walked with God” (Genesis 6:9).
Noah was a just and perfect man because he walked with God. Noah walked with God, therefore, evil did not overcome him, and he overcame evil.
You have gone on a walk with someone, and you were mindful of that person’s presence. So it should be when we go through life, picturing ourselves walking with God, being mindful of His presence, and that will make us just and perfect, undefiled from the corruption of the world.