They are talking about the security council, not the UN. The way members in the security council holds a veto to every decision paralyzes it. You should automatically lose your veto/seat in the council if you invade another country.
If the bylaws of the security council contained the risk of exclusion or at the very least loss of veto, I think both the US and Russia would more carefully contemplate the cost of the invasions they are guilty of.