That sight - of someone shaking off the infinity stones like that - it was truly terrifying. The god had to make a quick decision. They had had no effect on the other man. He didn't know why. Maybe he was more powerful than them, maybe he simply knew how to deflect their magic - though there was nothing simply about that.
He hated what had to come next. The god couldn't let the man have them. So he sucked in a huge chunk of their energy while he smiled at the other man. "Oh, you know how this place is... nothing interesting to entertain myself with otherwise." It was a strained smile. One that soon reached a level of grotesqueness as his skin peeled back from his dead flesh and flashes of the stone's energies rippled through his body. His eye colour started changing, flickering through different shades of the infinity stone. He could not hold the energies forever but it would be enough to put up a fight, even though it was nothing more than a shadow of the real stones.
Then he dispelled the gems in his arms. He put them in their own individual lockbox universe and at the same to removed all knowledge about how to get through the multiple layers of protection. The knowledge would come back but the moment he closed off the universes the memory of how vanished.