Based on my admittedly limited knowledge, I don't believe we should have ever encouraged Ukraine into wanting to be part of NATO, UN, EU, or any other organization that made it seems as if it was "joining the west". It would have been better for Ukraine to aspire to neutrality. In that sense they could still have good relations with the west but at the same time not be perceived as a threat by Russia. While I don't at all condone the Russian attacks on Ukraine, I also can't blame Putin for not wanting NATO camps being set up along the Russian border, as just one possibility.