How to create a Firewall rule to block individual ports

I would like to setup a firewall rule to block everyone from accessing CPANEL or WHM on my webserver except my IP (or ASN).

I’ve read this post - Block Ports on the pro plan and I can see that I can implement a Rule however, I’m looking to have granular control on the rule itself which is why I want to create a firewall rule

It would look something like:
If Port = 2083 and IP is not (my IP), block.