CNBC's Jim Cramer explained why bailing on stocks when things look bleak ends up hurting you in the long run.