God couldn't impute wickedness before the Flood because there was no written Law to break.
Watch the Teaching: Why the Law Was Given — Galatians Chapter 3 Explained