I think this is just a cooler hand - you couldn't have made it play out any other way. You should pat yourself on the back for folding the river like that. The action on the flop probably indicated that he had the 10, and the 5 lets him fill up on the river, so it's good you got away from it on the river, but I don't know that I could have folded at that point. Good discipline.