Evolution of the radius valley around low mass stars from $Kepler$ and $K2$