To ensure that the driver understands that the offense that they have broke, meanwhile the officer is trying to maintain a safe situation.
So keep everyone safe, inform the offender, take action via. Verbal Warning, Written Warning, Ticket, or Arrest.