A friend or a foe

There once lived a princess,
With the enemy so friendly;
He came in her dreams'
And was often so deadly.

He helped her doing her work at times,
But discouraged her grace pretty low;
Who could imagine such a creature,
Not knowing a friend or a foe?