When planting trees does more harm than good