An obsession with security is increasingly putting both migrants and human-rights defenders on the wrong side of the law. The trend is the same in both the USA and Europe.