If you dream of someone giving you a warning, this represents a situation or problem that is causing you much stress.
The dream warning may serve to get your attention and encourage you to focus on the real-life problem.
If you faced up to the danger in your dream, you will be successful at overcoming your troubles.
[1]