AS PLAYED, the fold is fine/good

but we could totally made this a much more favorable situation by getting it in pre instead of getting tricky or whatever you were trying to accomplish by flatting preflop