For a land with medium rainfall which hedge plant species can be used for creating fence. Plants that should prevent entrance of animals like goats and cows and ideally its leaves should not be edible for herbivores. And they should not require abundance of water. Even great if there are options that produce fruits or other byproduct. Climate varies from 28 to 115°F (-2 to 46°C).
Thinking about Carissa Carandas but not sure if animals eat it.