A dad of two who forced his way into a home and wounded a woman with a knife as she confronted him has avoided prison.