I don't know if that might give a reason to ban the entire team. I am not even sure it allows to ban specifically them.Many russian and belorussian athletes are soldiers. Maybe only on the paper, but still.
Again, I'm not against sanctions. I want the sanctions to be lawful, even if the actions of Russia are not.
Teams have the right to refuse competing against Russians. That's fair.
Federations might refuse to invite Russian athletes. That's also possible, although I don't think it's allowed for major championships.
Organizations might cancel events in Russia or at all. That's another legal way of action.
Just to say "we don't allow Russians" is illegal. Legality is more important that what might right now be perceived as justice here and now.