Seek medical care if over-the-counter treatments are ineffective after 3 months or if the infection is spreading, to prevent permanent nail damage.