Electric is definitely an option. My kids grew up with electric fence used to keep my horses in. When they were little, we'd unplug it when they went outside. As they got older, they learned through experience. We had a lab that ran under the fence once. It shocked the tip of his tail. He...