My first and only serious encounter with law was when I went through my divorce. I pretty much memorized my state's family code and was sure that I stood on firm legal ground. It turns out that there is a lot more to it. The courts have decided that certain actions are Prima Facie evidence of other things. That is, if you do X you are automatically guilty of Z unless you can beyond a shadow of doubt prove that you aren't guilty of Z. So the courts add to the laws by interpreting X as Z but they also simply ignore parts of the family code they don't want to apply or enforce. My state's family code is short but there are several volumes of law books dealing with how the courts interpret and apply the laws.
Yes, it is very easy to loose your rights. For example, if law enforcement starts to conduct an illegal search and you don't object than you will have no grounds to have any evidence excluded. Your silence is considered tacit approval if you are able to object but don't. Likewise, if you don't state that you are exercising your 5th amendment right against self-incrimination than law enforcement can keep working on you.
One of the things that is obscene to me is law enforcement can read a suspect his Miranda rights than interrogate him for 12 hours telling him the opposite and if the suspect incriminates himself they can use it. Also, a suspect lying to law enforcement can have the lie used against them but law enforcement can lie about anything to get a suspect to incriminate themselves.
If you are in trouble with the law you need a lawyer before doing anything. What you think you know about the law isn't enough when you are under arrest or suspicion.