A pervert who immediately breached his Sexual Offences Prevention Order (SOPO) when he was freed from prison has been handed a four-month jail sentence.