A farmer has dug trenches around his fields in a novel way to ward off poachers and stop joyriders damaging his crops.