Survival criterion for a population subject to selection and mutations; Application to temporally piecewise constant environments. (June 2021)