The story
From the naval tactic of firing a warning shot across the bow or front portion of a ship in order to force it to stop or alter its course.
Etymology from Wiktionary, CC BY-SA 4.0.
Today it means: A warning that negative consequences will be faced if something is carried out or allowed to continue. Full definition →