My rescue male can be confrontational like that. My behaviorist trainer recommends positive counterconditioning in steps. Example: Calm stranger appears, throws down yummy treat, leaves. repeat, repeat, repeat. Then, stranger appears, throws down yummy treat, just stands there. repeat etc. There's more to it than that, but that's the idea.