So tonight I was playing 0.25/0.50 NL 6man cash table. Player X bet 1.50 I called, Then flop 3d 8d Ad Player X bet 3.25 I called again. Turn was 6H Player X bet 6.25 I raised all in for 22.00. Player X calls he had Kd 9d I had Qd 7d. We both flopped flushes I lose obviously.

All night I have been dodging big beats, and then I cant get off this hand and honestly thought I was ahead. My question is is there anyway to fold here did I make a bad move. or is that just poker. How do you avoid this thanks everyone for you thoughts