How to limit users from buying more than one free plan

If a user already has a free plan which is in active status, do not allow the user to buy a free plan again. Currently the default wix plans and pricing module allows buying multiple plans at the same time. Is there a way to achieve this feature through wix plans and pricing settings page or through Velo API?