In all honesty, the best practice against such tactics is a boycott. Buy from someone who allows you to repair.
That being said, using software to break the device on purpose because one did not buy your spare part should be considered a criminal act.
That being said, using software to break the device on purpose because one did not buy your spare part should be considered a criminal act.