Ancient civilizations can show us how to protect the Amazon rainforest