Since the Earth is finite, and we will have to stop expanding sometime, should we do it before or after nature's diversity is gone?

Since the Earth is finite, and we will have to stop expanding sometime, should we do it before or after nature's diversity is gone?