If you really want to get aggressive you can get short exposure to risky stocks, but this is an incredibly risky strategy that rarely makes money and requires considerable expertise, research, and luck to make it work
Overall your best bet is to not try to time the market, but if you are worried about a recession and have an investment portfolio with risky assets, maybe take some of that risk of the table understanding that you may sacrifice real financial gain