It's like reported speech. Nothing to do with obligation.
This is a warning of what is going to happen (a present warning about the future).
That was a warning of what was going to happen (both the warning and the event have happened).
Hope this helps.
- For Teachers