ufw checks rules from the top and the first match wins. A new deny rule added at the end of the list may never be reached.
sudo ufw insert 1 deny from 203.0.113.7
sudo ufw status numbered
insert N places the rule at position N and moves the others down. That is how you block one address that would otherwise match a broad allow rule, such as an open web port. ufw status numbered confirms the order. A plain ufw deny appends the rule to the end, which is too late if an allow rule above it already matches the same traffic.
Further reading: ufw manual page