Availability of prey resources drives evolution of predator–prey interaction