Adaptive and non-adaptive plasticity in changing environments: implications for sexual species with different life history strategies