Deamons don’t enter someone through touch. They are spirits! Not bacteria passing through touch. They came out of the possessed man and went over - all by themselves- to the pigs if you recall, entering into them without any physical assistance.)
If this was the case that spirits could transfer in such a way, the Holy Spirit would enter and take over anyone I or any believer touched. Are deamons more powerful than the Holy Spirit? Not in the slightest. It seems giving over ourselves to a spirit is the way in which it enters in. Such as when Judas knowingly opened himself up to betray Christ and Satan entered into him. A clear case of siding with Satan, not hi-fiving or wrestling with a possessed man, but After taking a piece of food from Christ while finalising his decision to betray him.
It makes far more sense to understand the warning of “laying hands on people hastily” in the way it is meant in Matthew 21 v 46.
But when they sought to lay hands on him, they feared the multitude, because they took him for a prophet.
(Here “they” wanted to get hold of Jesus and dish out punishment unrighteously upon Him in their anger)
I believe this is what is warned against - To hastily judge someone and condemn them without ensuing that person is actually guilty is to partake in sin. To listen to gossip and slander and to be quick to accuse And go after someone all guns blazing as they say. The verse before is connected - warning against prejudice and partiality (that may make us quick to believe a bad report of someone before hearing the full story and testing the evidence etc I assume)
1 Tim 5 v 21 and 22.
I charge
you before God and the Lord Jesus Christ and the elect angels that you observe these things without prejudice, doing nothing with partiality.
Lay hands suddenly on no man, neither be partaker of other men's sins: keep thyself pure.
I don’t mind if you think this is a wrong understanding. (I know how some versions have translated this but encourage you to research the original text and you can see a common Jewish phrase being misunderstood. (Just as “breaking bread” was a term for eating together and not what many believe these days means taking the “bread and wine” together).
I hope I haven’t annoyed anyone too much, just wanted to offer another view on these matters.
GotQuestions Website has this to say which I found good-
The Bible records only one instance of demons being transferred from one living creature to another. It happened when Jesus transferred the legion of demons from the possessed men into the herd of pigs (
Matthew 8:28-34). Jesus did not repeat this miracle, nor did He ever warn His disciples (or us) about transferring spirits. There is no reason for a born-again believer in Christ to fear Satan or his fallen angels. If we resist him, he will flee from us. "Submit yourselves therefore to God. Resist the devil, and he will flee from you"(
James 4:7). As true believers, our body is the temple of the Holy Spirit. We can be confident that the Holy Spirit will not tolerate a demon in His temple.