All he had to do is behave like an adult. She is a child.
Yes, that girl is hurting. Her mother is a shitbag. But he should have shut all of this down. If he does indeed cross the line, I hope this ends with him either in jail or losing everything and ending himself.