to have thought of it before
Pues haberlo pensado antes.
Well, they should have thought about that before.
— El odio (1995)
Haberlo pensado antes.
I should have thought about it before.
— El salario del miedo (1953)
Deberías haberlo pensado antes.
You should have thought of that before.