you didnt do anything wrong I think you're only chance was going all-in preflop and him folding.