The S&P has rallied 19 percent in 2013, which is impressive by any measure. But the market did far better in 1987, when stocks added more than 30 percent from the beginning of the year to Aug. 8. The problem?

The market ended up tanking in the second half of that year—dropping 36 percent from the Aug. 25 peak to the October low, before closing out 1987 nearly exactly where it began.

And Marc Faber, publisher of the Gloom, Boom & Doom Report, predicts that the very same thing will happen in the back half of 2013.

"In 1987, we had a very powerful rally, but also earnings were no longer rising substantially, and the market became very overbought," Faber said on Thursday's "Futures Now." "The final rally into Aug. 25 occurred with a diminishing number of stocks hitting 52-week highs. In other words, the new-high list was contracting, and we have several breaks in different stocks."

Faber says that's exactly where we find ourselves this August.

"If you look at the last two days," Faber said, referring to Tuesday and Wednesday, "it's remarkable. We are close to the all-time high, at 1,709 on the S&P, and yet yesterday and the day before, there were 170 new 52-week lows. That's a very high figure."

(Read more: The S&P stalls—here comes the fall)