Restrict same level role allocation in projects


I’m having a self-managed GitLab instance. I need to restrict members of a project to only invite members for lower level than their level.

Now in GitLab,

A Maintainer can invite another Maintainer,
A Developer can invite another Developer,
A Reporter can invite another Reporter.

But, I need as below:

A Maintainer can only invite any Developer or Reporter or Guest,
A Developer can only invite any Reporter or Guest,
A Reporter can only invite any Guest.

How can I achieve this?