Zero. If the choices are to leave a child in a bad situation vs. destroying a family for no reason, I would err on leaving a child in a bad situation. Neither option is great, of course, but in the absence of perfection...
Then you cannot, under any circumstances, remove a child from his or her parents.
I mean this in the strictest, most mathematical sense.
Are you sure that's what you want?