Hi Muhammed,
I would recommend to only update your stock on the moment that people order to simplify your request.
For that you create a microflow on a button. The cart should be passed in as parameter.
This should update your stock quantity. (please be aware you still need to validate and all for negative amounts etc.).