Folks around here make an effort to stay at a distance, but at times you can't, briefly. Nobody gets arrested. This is advisory, not legal, though some mayors and police may exceed their legal authority at times.
Closing a restaurant is different. Closing an office space is not legal either.