If I go to your house and beat you up, you have every right to call the police on me and they should be able to throw me in jail, and keep an eye on me until I've reformed my ways. However, this doesn't mean you can go to my house and start stealing all my things: just like any other immoral act, as you point out, one crime doesn't absolve another. This should apply even if you're a policeman.
Accordingly, the USSR should not have seized Kaliningrad, Stettin, and Silesia. Don't you think those territories should be returned to Germany?