To dream of a warning may be as simple as your unconscious mind making sure you are aware of a current happening in your waking life.

Heed any warnings in a dream, and check in with your emotions surrounding waking life warnings. Dreaming is often a way that more aligned aspects of yourself can offer important advice.