Inverse versus direct cascades in turbulent advection