It just does not appear possible, even for God himself, to make a bounded space completely protected from the outside—not in the real world, with its necessary limitations,
I think God could have kept out Evil (Satan) butt choose instead to allow it thus giving choice or free will.