This guy

Hey ladies and gents I need some advice I really like this guy and he was upfront about having a gf but he still messes around with me I really like him but I cut it off because I realized I couldn't handle it. Did I do the wrong thing?