Stocks have gotten a lift from hopes that fears over a recession are overdone. That optimism could be premature.