Well wouldnt you first apply the purple dice based on the ranged table, ignoring first the fact that you are actually being engaged by a NPC wielding a knife wanting to stab you. Then as GM add an additional difficulty or set back die based onthe fact that you are shooting at someone at range when there is an even more and present danger right in front of your face.
One thing that I keep on applying as my personal rule (something that I heard from a podcast) is that the SW EotE is a game of "Yes but" not like a DnD game mechanic for example which is more "No but"
So dont be to engrossed into trying to look for rules on it or apply book lawyer mechanics. If a player wants to do something like your example for instance then simple say "Yes but" and your "but" is the difficulty/setback dice that would add to the pool. Remember, this game is a narrative/cinematic game first. Book lawyers, please stand right at the back of the line.