How can I set a purchase quantity limit per customer?

Hi guys,

I am still looking for how to set up a limit of the purchased quantity, for some specific products, limit one per customer.

Is there anyone solving this problem by coding? I don’t want to pay $5 per month. Thank you so much for your help.