On my ants' formicariums I use a very thin layer of petroleum jelly just below the lid. It needs reapplied every so often, and needs to be on a vertical surface they would need to climb on. I don't see why this couldn't be applied on the stand of the enclosure to prevent ants climbing past it aside from needing to wipe it off and reapply a bit more often because of dust settling on it. There is a product made specifically for that, but petroleum works fantastically so I've never bothered trying it. The idea is that it makes the surface too slippery for the ants to get any traction.
Another thing I use in the house to deter wild ants is sprinkling cayenne pepper in the crack wherever they are coming into the house from. I've had pretty good success with it, but it does require a bit of detective work sometimes.
Hopefully your larvae are doing fine but if not, the beetles will make more I'm sure.