The tool could tell them what the problem is. There are fine grained permissions, and Google could say which of those fine grained permissions are used badly. OR, they could just restrict those permissions themselves in the browser.
The fact that it took four years in your example implies that permission shaving isn't hugely risky for devs.
It's the honest developers that get their meaningful accounts banned.