You searched for: “quidquid agas prudenter agas
Quidquid agas prudenter agas.
Whatever you do, do with caution.

The full proverb is Quidquid agas prudenter agas et respice finem and is translated as "Whatever you do, do with caution, and look to the end."

A shorter version using, Respice finem, is translated as, "Look before you leap."