Many nail problems can be prevented by wearing the right shoes and trimming your nails properly. To help avoid infection, keep your feet clean and dry. If you have diabetes, tell us before doing any foot self-care.