You might have to always keep her on a leash (or a lead as some folks call it) until she understands her boundaries. You can get a long one for when she needs to do her business, is there a place to put a rope out on a pole or something so she can wander around the garden but not escape? How old is the pup, and what kind is she?

Welcome to Pet Talk, by the way!