If we face a recession, here's how to protect your investments.