Keep your dog on a lead. A farmer is within their rights to shoot your dog if it is worrying livestock.