I would play it the same actually. On the turn you still have the nut draw and there's a chance he is just raising a gut shot like 7x 8x and such things. When he bets the river big you fold.

It would be really interesting if villain is capable of doing this with a hand like T8s or 67s. One you beat one you don't. But there just aren't many of those hands in a normal preflop range that would bet near pot on the river, so this is very heavily discounted.