Best prep IMO would be getting a recession-resistant job. As long as income is steady, it’s easier to weather a recession since you won’t have to sell low. In your line of work, look at which jobs are likely to become non-essential first. As far as companies are concerned, which have revenues most tied to consumer spending which typically nosedives during recessions. And boost the networking now, not when you’re desperate to find another job down the line.
To lessen the impact of potential layoff, build up an emergency fund that would be used to cover your expenses while unemployed. If you gradually reduce lifestyle now to boost savings, it won’t be as huge a step down in case you become unemployed. Plus having liquidity during recessions is the secret to be able to jump on opportunities. I think especially in real estate that’s always gonna be a relatively easy win if you have cash to buy properties at depressed prices and position yourself to get all of the rebound in prices later.
Investment-wise, theoretically you could move away from equities and into bonds/gold/cash which are more resistant to recessions. The well-documented issue with such market timing is that you have to be right twice in a row for this to work out. If you jump off the bull run too early, you miss out on returns, if you jump off too late, you may already be selling low. Then if you jump back in too late after the recession is over, you’ll miss out on the best earnings. So unless you’ve got a better crystal ball than the relatively efficient market, in practice, this is pretty hard to get right consistently. You can however use dollar cost averaging. And if you have savings, during the recession put some extra into that dollar cost average investing.