Spirit entities can not target beings they can not find. It is possible to change your fields of your energetic body/astral/spiritual body to blend or become invisible to other spirits. I have been able to completely hide myself on spiritual plains from other entities so it can be done speaking from my own experiences. You can also make copies of your energy body’s and have them placed around you to confuse and waste the entities time.
Deception is not just something that is only found in the physical plains, it’s used a lot in spiritual/energetic plains as well and if used in self defence like in your case you are justified in the use of it.
Entities like and prefer to attack/interfere with people when they are in a hightten emotional state as its very easy to make emotional people to act on a emotion rather tham thinking the action through. Hence why most ESPs are targeted a lot