Everyone in the United States has constitutional rights, regardless of their immigration status. Knowing them before an encounter is your best protection.