Here’s how to weather a recession with smart real estate investments