You know how the EVs gradually take effect, not all in one level? When at level 5, not all the EVs have taken effect, so there is no need to invest fully. Go test out how many EVs you need on Pokemon Showdown! to find out how many are needed to max out the stat.