No personal answers or interpretations here.
A board edge cant left by retreating, so an unit stops on board edge and loose one block FOR EACH hex it doesnt/cant retreat.
If the unit have still one block left (still alive), it may battle then, if it is still in the original hex of the battle start.
If the start hex is the board edge hex, the unit may battle back then.
As i said, its ALL in the rules, sadly i have not the time and the passion, to search and copy all out and paste in here again