What does "Anyone on the internet with the link can open it, because {folder} is shared. Restrict {folder} to stop that." mean?
The item's own setting may be "Restricted", but a folder above it is public and shares it. To stop that, restrict that folder or move the item out. The folder's name in the line is a link that opens it.