I keep fencing around my veggie gardens. If your garden is too large for you to do that then keep them in a run like Miss Chessy said.
This past winter we unrolled a large bale of hay inside the run. Easier on their feet, and gave them something to scratch for, they had a ball in there. Now...