Edge ideals with almost maximal finite index and their powers