Conflicts with people are growing as expanded forest land and climate change push the creatures into human settlements. There are solutions to try.