Even so, if my country started to structurally refuse entry to foreigners who had - at their expense and with considerable documentation requirements - obtained a visa in the legal way I'd be quite upset and in fact highly surprised.
See, even though a visa is not a guarantee the general rule is that they are not withdrawn capriciously and if you do that you risk making people from other countries wonder if it is worth applying for a visa in the first place.