Verb + à someone or something
faire attention
àde
The constructions
àfaire attention à quelque chose
Meaning : to be careful about something
Fais attention à la marche.
Do not writeFais attention la marche.
defaire attention de + infinitif
Meaning : to take care to
Fais attention de ne pas tomber.
Why
Faire attention à before a noun, faire attention de before an infinitive, especially in the negative: faire attention de ne pas glisser. Faire attention à faire also occurs, but de is more natural before the infinitive.
The trap for a Chinese speaker
注意某事 is direct. Attention is a NOUN in French, and its complement takes à: faire attention aux voitures.