I'm aware about the rule that you can't enter a country if your passport is going to expire in 6 months or less.
Does this apply also for visas? Let's say that my US visa expires in July 2023. Does it mean that I can't enter in the first semester of 2023?