There is much evidence which indicates that Paul's decision to go to Jerusalem in Acts 20 was due to him being "compelled" by an abundance of sensory influence to act in disregard to God's primary will. While in Ephesus he wrote to the Corinthians:
But I will tarry at Ephesus until Pentecost. For a great door and
effectual is opened unto me, and there are many adversaries. I
His plan at that point did not involve going to Jerusalem for Pentecost since he knew (by the spirit) that God had opened a door of utterance for him in Ephesus. The effect of the "many adversaries" is not known, but in his next letter to Corinth he wrote:
For we would not, brethren, have you ignorant of our trouble which
came to us in Asia, that we were pressed out of measure, above
strength, insomuch that we despaired even of life: II Corinthians 1:8
Sometime before Pentecost, Paul's attention was drawn away from the door that had opened to him. With all his strength he wanted to finish his "course with joy, and the ministry... received of the Lord Jesus, to testify the gospel of the grace of God" (Acts 20:24) but now somehow he felt that this could only be accomplished by ministering in Jerusalem (the place of his upbringing, where he had previously reached the top of society as a Pharisee). After he decided to go to Jerusalem for Pentecost, he announced to the believers in Ephesus:
And now, behold, I go bound in the spirit [God was telling him not to go]
unto Jerusalem, not knowing the things that shall befall me there:
Save that the Holy Ghost witnesseth in every city, saying that bonds
and afflictions abide me. But none of these things move me, neither
count I my life dear unto myself... Acts 20:22-24
At this point, Paul was convinced (by a senses feeling of dispair) that his whole world was beyond recovery, but that somehow finishing his ministry in Jerusalem would be meaningful. Now stopping in Tyre, he had a similar interaction with trusted believers who he himself had instructed in the operation of holy spirit:
And finding disciples, we tarried there seven days: who said to Paul
through the Spirit, that he should not go up to Jerusalem. And when he
would not be persuaded, we ceased saying the will of the Lord be done.
Paul had indicated that he understood his options, and still felt that he needed to go to Jerusalem even if it meant he would have to die in doing so. He just couldn't seem to grasp the possibility of his future having a positive outcome by not going to Jerusalem.
Despite our knowing better than to go against God's will, because we are subject to human limitations, none of us can fully predict what we will do when enough pressure and stress is applied. We should never want to settle for less than God's primary will, but at some point may have to receive God's forgiveness and forgive ourselves for doing so.