Jeremiah was in a pit of despair, literally,
“So they took Jeremiah and cast him into the dungeon of Malchiah the king’s son, which was in the court of the prison, and they let Jeremiah down with ropes. And in the dungeon there was no water, but mire. So Jeremiah sank in the mire” (Jeremiah 38:6).
The prophet simply spoke God’s word, and the people persecuted Jeremiah for it.
He did not think to himself what he had done wrong, or whether he should have used a different approach, but they were in the wrong, and Jeremiah did not back down from that.
Such did not make him arrogant, nor did he deliver God’s word in a careless way, but in love he spoke the truth to his people.
If you live and speak the word of God, the same will happen to you, but do not despair, for even as Jeremiah was delivered from the pit, so God will deliver you.