Pei Xuanjing had made thorough preparations for his disciple. If his disciple could master the Nine Revolutions Divine Sky Skill and the method to condense the Golden Core during his incarnation's cultivation, he would have a great chance of succeeding.
Of course, if despite these preparations, Pang Hong still could not successfully convert to this new cultivation or successfully condense the Golden Core, it would mean that he lacked the ability to do so, and no one could help him with that, not even Pei Xuanjing.
You could say that he did this to encourage Pang Hong to make an effort. Regardless of success or failure, it would at least resolve his inner obsession and prevent further delays.
"Master, I understand. If I fail after this attempt, I will abandon the idea," Pang Hong solemnly promised Pei Xuanjing.
He was aware of all the preparations his master had made for him. If he still failed, there would be no meaning to continue persisting.