A Theory of Limits on Corruption and Some Applications