Economists have predicted 9 out of the last 5 recessions, as the saying goes.
Usually even if this it the case you don't necessarily want to pull out of the market, but buy into the dip. Unless you seriously think the stock market is going to be wiped out for years, buying the dip means you have a large position when the market starts recovering.
Most non-institutional investors rarely just have cash lying around. My assets are tied up in the market. Same as it's dangerous to try to time the top of the market, it's dangerous to try to time the bottom. I tried in a modest way in 2008, and it took me a decade to recover on those stocks.
Usually even if this it the case you don't necessarily want to pull out of the market, but buy into the dip. Unless you seriously think the stock market is going to be wiped out for years, buying the dip means you have a large position when the market starts recovering.