What else could you do?
It's always a risk with a pair on board or against a pocket hand. but there is no perfect hand in poker...