A thief who stole from a Sunderland shop has been given three months to steer clear of crime – or risk being jailed.