How superdiffusion gets arrested: ecological encounters explain shift from Lévy to Brownian movement