You can't. All you can do is tell them that they either have a refrigerant leak; which means finding and repairing the leak, evacuating, and charging with new refrigerant. Or, they have a restriction; which means replacing the cap tube and filter, evacuating, and charging with new refrigerant.
Both procedures are time consuming and probably similar in cost. However, finding and repairing a leak is not guaranteed as some tubes are not accessible in a residential refrigerator.
When we have run into this, we tell the customer to start shopping for a new one. We also offer to try to add gas to the system to possibly buy them some time in finding a replacement.
For what it's worth, 99% of the ones I've seen like you describe above are low on charge. I can't remember the last restriction I've seen in a residential fridge.