Is the sentence right or wrong? Pay attention to the reported speech.
"Take two pills every day."
The doctor told me to take two pills every day.
If we want to transform somebody's demand or request into reported speech, we use:
If the imperative was negative (don't go, don't do), we put "not" before the infinitive: tell somebody not to do something.