Call the fashion police.

A Long Island security guard arrested for assault on Wednesday was collared wearing a bone-headed parody of the Miranda warning recited to arrestees.

“Warning! You have the Right to Remain an Idiot. Everything YOU say can and will be IGNORED!” screamed the shirt worn by John Ruggiero as he was escorted out of a Selden precinct for his arraignment Thursday.

That was a play on the “You have the right to remain silent…” Miranda warning police use to apprise perps of their Fifth Amendment rights.

The 50-year-old security guard was taken into custody after he allegedly assaulted an elderly visitor at a gated community in the hamlet of Mount Sinai around 3 p.m. Wednesday, according to the Suffolk County Police Department.

The altercation began when Ruggiero, who works for private community The Ranches at Mount Sinai, denied entry to a 69-year-old man attempting to visit a friend, police said.

Ruggiero and the visitor allegedly exchanged words before the feud escalated and turned physical.

The elderly man was injured and brought to Stony Brook University Hospital, where he was listed in serious condition, police said.

Ruggiero — who was also treated at a local hospital and was seen with a bandage on his head — was arrested and charged with second-degree assault.

He pleaded not guilty in Central Islip court Thursday.

Ruggiero was released on $7,500 bail and is scheduled to return to court on Sept. 24.