Hi there. From the context, it seems to mean “toward the beginning” or like, “at the start of” the circumstances/story/dilemma being described in the sentence. Someone else might have a better explanation, but contextually, it seems to mean “towards the beginning” or “at the start of things”.