If "governments" or any naughty entity was running entry and exit nodes in the hopes of attacking users, it's unlikely they'd mark them as such in an obvious manner.
So attempts to filter them on some arbitrary basis wouldn't even be especially effective against the attack and may harm your anonymity in other ways.