Sentence:  Agricola ... resolves to be <WSD>beforehand</WSD> with the danger. 
Meaning of the word marked with <WSD> tags:  In a state of anticipation or preoccupation.