ATM card scams are bolder and more creative than ever.
Most people know to avoid ATMs with strange equipment hanging off the front - somebody could have installed a card reader (or "skimmer") for stealing ATM card numbers. You may also think about who owns an ATM before you use it, preferring to stick to machines in reputable places.
For a while, you could stay safe by using bank-owned ATMs and sticking to well-lit locations. Not anymore.
Thieves are using equipment that's almost impossible to detect, and they're installing ATM skimmers on "higher risk" (for thieves, that it) machines.
Pay close attention to ATMs before entering your PIN, even if they seem to be in a safe place. There's very little you and I can do besides use common sense. However, Karen Blumenthal provides a few tips on how to improve your chances against ATM card scammers.
Further reading:

