Roger;
i do agree that better planning would have made for more practical safeguarding here.
Simply to flip up the nema 3r panel cover may topple one into the pond.
Myself, i'd insist on backfill, or at least some sort of platform to 110.26's spec's...

...did the AHJ see this??