What I will agree with is that too much petting, they don't like. But most well-behaved moggies will warn you beforehand with a tail twitch or just get up and leave when they have had enough. Even hoomans do that! ;o)
A neat invention:
Genius has struck here.