I learned along time ago, horses or mules,you keep them in an all steel environment. My barn where they can get to it is covered in chain link mesh. Stalls are lined with warehouse mesh panels. Corrals are pipe panels
It is like trying to stop mules from pawing. Put hobbles on the dang things and save you and the mule frustration.
There use to be a product, I think it was called Crib Halt. It came in clear and dark. Clear didn't do any thing, but the dark stuff stopped them. Of course it was taken off the market because it was too toxic.