The way that I think about this scene now, is that Mr. Gold wasn’t allied yet with Emma [Desperate Souls] and now that we know that he knows that he is Rumple, he must definitely know Emma’s true identity as Snow White’s and Prince Charming’s daughter. And the only reason he would have needed to know her name in the pilot was to help her break the Queen’s curse.
When this episode happened, Mr. Gold was “pretending” to give the Evil Queen fake power. He wasn’t playing sides yet.