How To Allow Roles To Add Only Same Role Type?

How can I allow the Editor role only access to create new users of the same Editor role type or below only? In other words, I wan’t Editors to be able to add users, but only users below super admin and admin levels.

How could I do this?

I have a plugin called User Role Editor and for some reason I can’t get it to work to even allow the Editor role the ability to add new users, logged in with my testing Editor role, I can see the “add new” under users, but when I go there, it only gives me the “Add existing users” fields and not for adding new users. Is there a code snippet or something i can use to do everything I need?