I would have done it with exits: create an exit and set it to locked (room actions -> lock/unlock), then add a dialog to it and place where you want. You can even make it teleport the player to the previous tile, so it will appear as if the player steps back automatically when touching the water. For this just add a room action -> exit to the required tile