Optimal Regulation of Natural Resources in the Presence of Irreversible Threshold Effects