alright ive jsut recently started playing at pokerstars, likein it so far but have bad a couple bad hits from hands similar, just wondering if there is any way to avoid a hand such as this.

its three handed at this point
i have 66

flop comes out k 6 7

i bet everyoen calls

turn j

i bet next guy raises i re-raise he calls

turn 2

i bet, he raises, i re-raise, he re-raises i call

i show the pocket 6's for trips, he shows his poket kings for trips


is there really any way to avoid beats such as these or did i play it correctly?

thanks.