There's a line that defines the 'kitchen' floor space and the rest of that house in some of my places, it's defined by the change from linoleum to carpet, in other's just the beginning of cabinetry.
Critters: They know NOT to cross that line while I'm working in the kitchen. Toes that cross that line are tapped with a finger til they are behind the line. They get rewards for obeying the 'line'.
I did make one exception, I had one dog, a retriever who was trained to NOT move. She laid perfectly still in the middle of the kitchen floor, I could walk over her, around her and since she didn't move I knew where she was and could avoid her. She was trained to let me pull down the doors of the oven and dishwasher over her and not move. She was the exception and it only happened when it was just she and I in the kitchen.
Visiting critters picked up the 'line' rules pretty quickly too. Humans? Not so much...
As for humans - well, the under 6 yo's were taught the 'line' rule too. Keeps them safe and again, rewards were enjoyed.
Over 6? Well, if you want to help then come join me! I truly enjoy working with other folk. If you're not there to help, prepare to be chased out over the 'line'!