Law enforcement must read you your rights, commonly known as miranda rights, when you are arrested.
You have the right to remain silent. Anything you say can and will be used against you in a court of law. You have the right to have an attorney. If you cannot afford one, one will be appointed to you by the court.