@Kingoo You already asked this and got responses but didn’t come back to us until now… I have moved your post in here to keep things together.
In this case you have given them a chance, and from here, if they are entities and not hallucinations, attacking them will frighten them off and stop more from coming. Basically you treat them like parasites and send the very clear message that it’s dangerous to bother you.
Take a look at our collected favorite tutorials for dealing with astral parasites and other unwanted entities: