God will treat us the way we treat him or others. If we reject God, he will reject us. If we are ashamed of him, he'll be ashamed of us. He will judge us the way we judge others. He will forgive us the way we forgive others. So we'll be treated in accord with how others are treated by us and receive what God receives from us. To be precise, since God always loves us, it is really us who put ourselves in any bad position. Aim to be perfect, and we'll be OK.