Q. Should developers take ethical considerations into account when writing software?
A. Yes.
Q. Should developers take nation-states' laws into account when writing software?
A. Only to the extent needed to be able to subvert shitty laws and avoid fines and jail time for themselves.