Understanding the Evolution of Enforcement Systems in Resource Dilemmas