Just so you understand, that your opponent has a full house on the river. You have 3 pairs. You can only use 5 cards though. Therefore, if you opponent has either a 6 or a 7, or even kings or aces, you are beaten.
There are so many hands that you are beat by that the optimal play is very very simple here.