Jesus said we can only get to heaven through Him. The way that is provided for us to do that is by obeying the Gospel. No other way is provided.
I agree.John 14:6 Jesus saith unto him, I am the way, the truth, and the life: no man cometh unto the Father, but by me.
Then you must agree that the only way this is accomplished is through obeying the Gospel.