These rights apply to legal aliens as well as citizens of a state, and can be restricted only where necessary to protect national security, public order or health, and the rights and freedoms of others.