To keep dogs from lying down in flower beds, simply drive some short stakes into the ground throughout the bed. Keep pets out of freshly mulched or seeded beds, or soft soil, by setting some thorny branches in the ground at regular intervals. Make a chicken-wire fence to protect entire beds.