Probing the boundary of phase transition of nuclear matter using proton flows in heavy-ion collisions at 2-8 GeV/nucleon