I have lots of foxes. They are very bold. They come right up to the coop and the enclosed run.
I find that they learn about the electric fence quite fast and stay away when it is on. The video above is after I installed the electric fence, but when it was switched off.