The words 'You have been warned' are usually uttered immediately after the warning. The present perfect is therefore appropriate. Once the warning is over, people are no longer being warned.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.