Guard

to guard something is an assignment

to prevent something from being damaged or stolen

or prevent someone or something from entering or escaping.

a guard is a type of enforcer