confine within

confine (someone or an animal) within something

to contain someone or an animal within something. We were unable to confine the dog within the yard. Could you confine all your car-repair mess within the garage?
See also: confine, within
References in classic literature ?
As for elves and fairies, and other such mummery, I purposely omit the mention of them, as I should be very unwilling to confine within any bounds those surprizing imaginations, for whose vast capacity the limits of human nature are too narrow; whose works are to be considered as a new creation; and who have consequently just right to do what they will with their own.
However with the passage of time every institution will settle down and confine within its limits, he added.