The first clause uses the past perfect. This is common in hypothetical (conditional) sentences. If I had realized the consequences, I never would have...
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.