Should you flee the stock market? Not at all. Instead, to protect your portfolio, here are three things every investor should do.