When predators attack, plants grow fewer thorns