I've just found a way which is kind of weird but works for my problem.
Let's say I want to block all ports and traffics for all IP addresses except for this range:
193.82.10.0-193.82.10.255
I created an inbound rule to completely block these IP ranges:
10.0.0.0-193.82.9.255
193.82.11.0-255.255.254.255
Sounds funny but it works. Anybody has a better solution?