Cheating on beater

Is it wrong that i cheated on my boyfriend when i got drunk at a game night party i feel guilty but he also beats me up and it happened again yesterday.. i told him I’m leaving him but he said if i do i will never see my daughter again but yet I’m here tryna stay in the relationship from previous altercations because i want my daughter to have her father in her life (that’s why i haven’t called the police)but not if he continues what he doing