A man from Swindon has been sentenced for breaching his sexual harm prevention order three times.