If you’re looking for restricting on UI then you need to implement a plugin. Please take a reference from below post and I have implement a logic to block forward button. May be you use same plugin and update the logic.
Or
There is other way is to use the global work item forward rule which presents under global setting under Identity settings. This rule will return “newOwner”. So, either exception from rule or simply return same old owner.