I would have raised him after the flop and turn

If he would have called twice he either has a high pocket pair (but he would have raised preflop) or he holds a 7 (or a 9)

so with the 3th 7 on the river I would have folded

but it is a very difficult call