The best way to possibly prevent athlete's foot
is to wash often, and change socks daily to a new, clean pair of socks.
It also helps to dry the foot thoroughly, with special attention paid to the areas between the toes. Wearing comfortable, well ventilated shoes also helps. If you get it, wash and dry the affected area, put on topical agent as per directions, and keep changing socks.