Russia invaded Ukraine because Putin thought he'd have a cheap and easy victory. If Ukraine was obviously well armed enough to make a cheap and easy victory obviously impossible, he wouldn't have invaded.
EDIT: To people downvoting, Russia is attacking Ukraine because of USA and because of the agreement between Ukraine and Russia.
Putin has been characterized, by some in the US, as genius in his timing. I'm not familiar with any propaganda portraying Putin as dumb.