Was Rem's warning fake?
Rem warned Light, but later Misa told Rem not to harm him, that she would rather die first. So Rem, in order to preserve Misa's happiness,couldn't kill him.

Light, being a genius, learned how to take advantage of the situation, and used Rem on his plans, manipulating her like any other.