Hello Richard. I’ve read several places that the leaves, twigs, roots and unripe fruit are toxic to livestock. I have also read that if there’s quality food and forage they will probably leave it alone.
However, I have no actual experience with this issue. Hopefully someone will. I have friends with donkeys and will be asking.