Collective action can avoid the “tragedy of the Amazon commons”