precaution
Definitions
A measure taken in advance to prevent something dangerous, unpleasant, or inconvenient from happening.
Caution exercised beforehand; prudent foresight.
Examples
We took the precaution of locking all the doors before leaving the house.
As a safety precaution, please ensure that you wear your seatbelt at all times.