Long before industry, ancient societies were already pushing their ecosystems to the brink