The druid doesn't need to be standing next to an enemy at the end of the turn. Only when they spend that bonus action because of the range. The druid can take the action, bonus action, and movement in any order. A sea druid could, for example, spend the bonus action first to manifest Wrath of...