NOT A TEACHER
That's an odd sentence. Where did you find it? It's not correct to 'recommend (someone) to do something' according to Longman: Do not say ‘recommend (someone) to do something’. Say recommend doing something or recommend that someone (should) do something .
You could say:
I recommend (that) you comply with safety regulations.
Student or Learner