Jeremiah 25 and 26 spell out the specifics of what is going to take place if the people do not turn from their evil ways. Jeremiah is commanded to tell the leaders what God has told him.
The priests and prophets want to have Jeremiah killed. The officials, though, recognize that Jeremiah is speaking for the Lord. They recall other times prophets spoke against the leadership and were not killed. Jeremiah is spared.
In John 10 Jesus says that he is the one who will bring people into the kingdom using the metaphor of sheep and the sheepfold. Others may try but only Jesus is the one who can do it. This is a clear statement that it is only through Christ that we can be saved.
The religious leaders are angered by Jesus’ statements with equate him with God. They refuse to believe that he is the one whom God has called to be the Messiah. They continue to want proof. When Jesus confronts them they try to have him arrested but he gets away.