Chicken wire around them or around anything you don't want them eating.
We have a 27x31 veggie garden with 3 foot chicken wire around it. They are in a run but I let them out at times and have to chase them away from my flower beds, especially the poisonous ones like the Lilly of the valley.