A cooling labor market doesn’t have to catch you off guard — here’s how to build a safety net and protect your income.