Changes between risky and safe behaviors depending on biomass