Raise a lot Pre-flop...
Do not try to slowplay high pairs preflop...
Do not try to slowplay trips with a flushdraw on the board...
Raise on the flop instead of checking... You're inviteing the flushdraws by checking...
Nothing wrong with the all-in, but because of your previous check's they took you for a bluffer...
//Ex