I should forewarn you, the test tomorrow will be challenging.

What is the meaning of the word forewarn as it is used in this sentence?

To look forward
To see in the distance
To caution afterward
To caution in advance