Geese usually have a good sense of Teritory and can be taught where they can and cannot go. I think (JMO) that geese are about as smart as most small dogs but can be very stuborn.
I wanted to keep my geese away from the garage, driveway, front porch And sidewalk area for poop reasons yelling at them would work but they often 'forgot'' so I strung a simple fence of two strands of string one about six inches off the ground and the other about 10 inches up and used wire coat hangers for posts. Would this keep out a goose? yes for about 10 seconds. The purpose was not to confine but to remind them, step across that line and be prepared to face the wrath of goosedragon with his roaring and his mighty swift herding stick. It took Three weekends before the ideal really sank in but by the end of the third weekend I had cleaned up all the poop and decided not to confine them to the back yard where there was a real wire fence. Monday after being gone all day I came home to a poop free area! This only caused one problem when the parents took their goslings for a walk and one of the little untrained rascals snuck under the string and would not come when mama and papa called. Frankly I was astounded that my training out weighted the instinct for mama and papa to rescue their baby. I herded him back under the string and apparently the parents must have trained him. The next year I got ducks who I couldn't train and I had to put up a real fence.