Collective punishment promotes resource conservation if it is not enforced