You can use a fence to keep pets in.