The man was told not to approach his former partner or even step into her hometown.