Sunrise is the final legal boundary for Fajr. Beyond that point, Fajr is no longer within its assigned time.
The phrase “until the sun rises” refers specifically to this end-point, not to midmorning or another later period.
The recommendation concerning isfar is a separate matter and does not change Fajr's formal beginning or end.