Good parenting may not increase reproductive success under environmental extremes