Believing in "other gods" means that you dont know who the One and only true God is....
Thus it means that the Jesus you have placed your trust in is not actually the one true Jesus that brings salvation.
and, that means you have placed your trust in a false god, and a false Jesus.....and therefore your sins are not forgiven, and you remain condemned by your sin.