I think we can pray for evil people without sharing in the evil stuff that is within them.
Jesus on the cross prayed for the evil ones who in their hate and rage were still busy with torturing and hating and murdering Jesus who is God's own Son. Jesus said . . . in prayer >
"Father, forgive them, for they do not know what they do." (in Luke 23:34)
So, Jesus in His prayer did not allow those evil people to decide how Jesus was and what Jesus did!
What I see is how Jesus in His prayer could be spreading how He is and how He loves, to them so they could be changed to how Jesus is and loves. He was doing this, for us . . . now, even, according to what I get through Ephesians 5:2 >
"And walk in love, as Christ also has loved us and given Himself for us, an offering and a sacrifice to God for a sweet-smelling aroma." (Ephesians 5:2)
I mean, I have learned that Jesus on the cross was being our example, so He could spread this to us, now today, to minister for us to become and to love the way Jesus on the cross was being and loving . . . being sweetly pleasing to our Father, right while going through all that, and kindly and caringly loving any and all people, with hope of adopting us as His own family.
This is where the attention of Jesus was, on the cross, during His prayer, I now can see.
So, among other things . . . in prayer we can trust God to change us to become the way He wants to spread to other people. And in the sight of God be this example, for Him to spread the grace of this to change others also to become and love like Jesus as God's family.
And then we are ready for love, with each and every person we see and think of and share with during the day
We are each person's best friend, by being every one's example of how to be and how to love, so this can spread to any person.
And yes God's grace of this is almighty, able to change the character of any person to become pleasing to God like Jesus is so pleasing, plus to be compassionate with hope for any wrong person > love
"hopes all things" > in 1 Corinthians 13:7.
This is easy and basic for God's grace to do, because God in us is almighty >
"You are of God, little children, and have overcome them, because He who is in you is greater than he who is in the world." (1 John 4:4)
God in His grace of our prayer, then, is greater than any and all of Satan's horrible stuff.
"Do not be overcome by evil, but overcome evil with good." (Romans 12:21)