Change Scale Based on Mouse

I’ve searched and tried, but is there a way to scale an object based on how far away the mouse is from it. Here’s the catch tho - the object has a maximum size.

Any thoughts?