で遊ばないように

not to play at/in

→ で
phrase Rare #36,693
not to play at/in で marks the place where the action occurs, and ないように expresses an instruction or precaution to avoid doing something. The place is usually specified before で.
JA: 川辺で遊ばないように、子供たちに言いました。
EN: I told the children not to play by the river.

彼は子供達に通りで遊ばないように注意した

He warned the children not to play in the street.

子供たちは暗くなってから公園で遊ばないようにその母親は強く言った

The mother strongly warned the children not to play in the park after dark.

彼女は子供達通りで遊ばないように注意した

She warned the children not to play in the street.

で遊ばないようにトムには言った

I told Tom not to play in the street.