What does this quote of Elizabeth Gaskell mean?

It is a generality. Gaskell is saying much the same as the contemporary “Hindsight is the only exact science”. Once we perceive the consequence of our mistakes it is easy to see how we could have avoided them.