In John 10 Jesus is telling the people that you will have eternal life. They don’t believe so they don’t understand what he’s talking about. He referred to the people who believe in him and follow him as His sheep and He is their shepherd. The people who believe receive eternal life. He referred to Himself as the gate meaning those who enter by him are saved from their sins. People who don’t believe in Him will cause problems with the body of Christ just like wolves trying to pull you away from the body of Christ. He keeps saying I’m the good shepherd meaning He will not let you die in your sins.
What this is basically talking about is if you believe in Him you don’t have to die in your sins or the horrible things of the world. He will protect you and laid His life down for us so we don’t have to go to hell so we can be with Him in heaven.