>by stating something like "I invoke my 5th amendment right to remain silent"
This needs to be rather structured as well as the cops can ignore your statement unless it has a proper syntax and names the 5th element directly. Example: "give me a lawyer dog" doesn't cut it (https://www.washingtonpost.com/news/true-crime/wp/2017/11/02...)