Man jailed for unlawfully harming farmer