A South Tyneside dad-to-be caught with drugs while facing the threat of prison has been given a final chance to retain his liberty.