In context of working on military hardware, it's more complex than that. Name whichever state you consider evil, there are good chances they've recently received or bought weapons from a state you don't consider evil. Name whichever state you consider good, there are good chances they sold their weapons to parties you find questionable.
You may build tech that helps the good defenders defeat the forces of the stronger, evil attacker, but 5 years down the line, you may discover that same tech is now used to blow up hospitals and refugee convoys - and it doesn't take your country being on the wrong side of a war, it just takes the usual international politics.
You may build tech that helps the good defenders defeat the forces of the stronger, evil attacker, but 5 years down the line, you may discover that same tech is now used to blow up hospitals and refugee convoys - and it doesn't take your country being on the wrong side of a war, it just takes the usual international politics.