From a scientific point of view, dreams have no warning, but are just a part of our psychological activities.
In short, dreams are a psychological activity and have no warning function. We should improve our situation through positive attitude and efforts.