I would have folded that hand PF for the exact reasons that you got beat for.

1) Out of position.
2) Best possible hand is two pair, which is easily beaten.

You are out of position and leading the betting. There is no way that if someone holds trips that they are going to stop you from putting your chips in the middle. They keep calling as long as you keep throwing them away.

Two pair is too hard for me to get rid of, so I don't go looking for it. I'd rather have TPTK any day to two pair, but that just might be because of my inexperience. At least I know though where I am weak. I can work on that later, but for now I stay away from it when I can.