Every restaurant I have ever been to seems to have a sign saying "We reserve the right to refuse service." They also sometimes say "No shirt, no shoes, no service." That's about it.
Somehow, they don't seem to typically have big problems with people behaving badly while having lunch or whatever.