Fingernails and toenails are naturally built to be strong barriers, and resistant to fungi and other infections. However, because of how strong this barrier is, once the infection is present, it is sometimes very difficult to eliminate. Nail fungus is not the same as ingrown toenails. How can I prevent nail fungus.