If he's got a restraining order to stay away from your children then he will be arrested if he violates that. The fact that your ex wife still wants to marry him should really determine the custody case in your favor. She can' t marry him and have the children living with her.
You need a good lawyer.