Farmer jailed for threat of death