it's better to bet turn against all the straight draws and week pair+draw hands in his range, and fold to a raise, because your equity vs a raising range would be very poor.
As played, you should never fold the river. Notice that all 5x hands are now counterfeited, and that the straight draws bricked. Those are more than enough combos to make for 30% of his river range (it's hard to make boats), which makes this a pretty easy call.
This spot is far from tough, so if you find it tough my general advice to you would be to fold less rivers.