Loosely paraphrased….

“Be afraid when investors are greedy and be greedy when they are afraid.”