Stir pinto beans, cumin, chili powder, and salt into mashed garlic and cook until beans are thoroughly heated, about 5 minutes. Stir occasionally. Smash bean mixture with a potato masher to desired texture. Squeeze lime juice over smashed beans and stir until combined.