i feel like her reminding herself it's a dream is her defense mechanism. She knows she is infatuated by the king and there is a possibility for true feelings so he is just guarding her heart so that she wouldn't get hurt because she is convinced in her mind that it wouldn't work in the end .