Contrasting effects of prey refuge on biodiversity of species