Scripture encourages us to trust in the Lord, and not necessarily to understand Him. As humans, we have been trained to reason so anything we cannot understand is naturally viewed as evil.
Take the example of Joseph; he was sold into slavery by his own brothers, and imprisoned in the dungeon. This was because Potiphar’s wife accused him falsely. He was an innocent man yet through no fault of his, he found himself being treated as an evil person. This is a comment he made about his inscrutable situation.
“For indeed I was stolen away out of the land of the Hebrews: and here also have I done nothing that they should put me into the dungeon.”
What he did not know was his enemies were actually working in his interest. If he had not been sold, he would never have gone to Egypt. If he had not been thrown into prison, he would never have met the butler who introduced him to Pharaoh. Through these “unfortunate” events, he became governor over Egypt. God used his enemies as tools to elevate him.
Are you fighting some enemies? Trust in the Lord because all things work together for good to them that love God.