Andrew Mitchell, 27, of Cleghorn Street, avoided a prison sentence for breaching his bail conditions.
He was granted bail on September 9 on condition he did not enter a property on Forth Crescent.
>> Keep up to date with the latest news with Evening Telegraph newsletter
But just five days later, those conditions were breached when Mitchell turned up at the property and tried to gain entry.
Sheriff Alastair Brown placed Mitchell under supervision for two years and for him to engage with Mentoring for Men.