This sequence of commands does not query the Critical Rollback Index.
This sequence of commands definitely does not replace the already outlined method.
Why would I query get_unlock_ability when considering Lock Ability?
It is unfortunate that this idea is being constantly repeated adding to the confusion for users as the OP.
This sequence of commands has been used the check only “device state” in the case of users returning to lock “late”, after the known catch-up version has been installed.
This post, Installed 3.0.2 official and tried to lock bootloader - #6 by olli0371 is, I believe, an example of the appropriate use of the technique.