My advice is to fall back.
You "win" in a gunfight when no shots are fired and no one is injured or killed.
Option #1 - Retreat: get away from the scene.
Option #2 - Draw and aim/warn if possible: hopefully this will deter the BG.
Option #3 - Shoot: to stop. If your shot kills, too, too bad.