Always go for banking in day hours and specially avoid to visiting ATM at night.
Always choose ATM location which you are most nearest point from your home or big traveled areas.
First observe the surroundings of ATM before make any withdraw, if there are any person looking you then tries to avoid using ATM this time.
The best practice is that always go for ATM with any family member or with your best friend.
not using if you find any other machine or password reader attached with the ATM machine.
Always select the ATM that is seeing by bank security or with security cam.