Modify the text to be easier to understand.
However, the availability of suitable habitat is critical: forest must be neither too old nor too young.
However, type of forest is critical: it cannot be too old or too young.