Thanks for the pointer and if my understanding is clear then define
map $geoip_country_code $allowed_country_A
map $geoip_country_code $allowed_country_B
map $geoip_country_code $allowed_country_C
under http section in /etc/nginx/nginx.conf
and then use
if ($allowed_country_A = no) in server section?