A Wigan 50-year-old who admitted harassing and threatening to kill a woman has been spared an immediate custodial sentence.