With a number of headwinds for the market, CNBC's Jim Cramer said that the prudent thing for investors to do is sell.