Am I wrong for telling my ex he can’t live with me if he’s still involved with his other ex?

Anonymous
Me and my ex dated for about 7 months but we have known each other longer than that. he moved out of his apartment and moved in with me 2 months into dating it made sense at the time because he was at my house 5-6 days out of the week. When he moved in he changed and there was a lot of drama with his child’s mother he claim he did not want to be with. Eventually he left me for her a few times the third time he moved in with her and then asked me if we could be friends a few weeks later he asked if we could be roommates until he gets his own place at the time I did not know he was living with his ex so I agreed to let him stay with me for a few months. We sat down and talked and he told me he was living with her but never really wanted to be with her she was keeping him away from his child and trying to get him locked up
Updates
1 y
When he moved back in and told me he wanted to be friends for now he swore he was not dealing with her and he just wanted to get his self together after a while
I knew he was dealing with his ex again because of his actions I put him out I don’t see a point in him living here if he’s going to be there 2-3 days out of the week he could just live with her again plus he made it seem like he wanted to work on our relationship Was I wrong for putting him out? he says I’m being bitter
Am I wrong for telling my ex he can’t live with me if he’s still involved with his other ex?
2 Opinion