Good point, Anna! A fence with an electric wire top and bottom is a great idea! I expect once the dog learns that it hurts to touch the fence, they will stay away even if the power should happen to be off temporarily.