A knife-wielding attacker was fought off by the wife of a man he was threatening