No, it actually sounds illegal. Certainly unethical. And definitely not like something a friend would risk destroying someone's career over.
There are two ways this story can redeem itself. 1) Harlan tells Dawn that he has to stop dating her because he's being brought before the board of regents on charges of unethical behavior, or 2) Dawn fails the class anyway. I prefer the latter.