“The View” host Sunny Hostin, a former federal prosecutor, is asking the Westchester DA’s office to go easy on her son after he was cited for trespassing while out for a run.

Authorities on June 16 accused Gabriel Hostin of entering an off-limits area near an active railroad track without permission.

Sunny Hostin — a veteran legal analyst acting as her son’s attorney— penned a letter asking prosecutors to drop the case prior to Gabriel’s schedule July 31 court appearance.

“My client is a 2025 Harvard University graduate with no criminal history or prior contact with the criminal justice system,” she wrote in a letter to the court obtained by the New York Daily News.

Sunny argues that her son is an avid runner and Junior Olympian track athlete who spotted a gravel incline while training that he saw as a challenge that appeared to be fair game.

“While training on the hill, my client was approached by a police officer,” she wrote. “The defendant called me immediately and I arrived at the location within minutes. During the encounter, and in my presence, the officer acknowledged that the gate should have been closed and, using a key from his own belt, proceeded to close and lock the gate.”

Gabriel Hostin and Sunny Hostin attend the screening of Marvel Studios' "Black Panther" hosted by The Cinema Society on Feb. 13, 2018 in New York City. (Photo by Roy Rochlin/Getty Images)Gabriel Hostin and Sunny Hostin attend the screening of Marvel Studios’ “Black Panther” hosted by The Cinema Society on Feb. 13, 2018 in New York City. (Photo by Roy Rochlin/Getty Images)

She contends the gate was open and that nowhere was a sign posted warning passersby they could be cited for trespassing.

Sunny argues her client made an “honest mistake” and is asking Westchester County prosecutors to help Gabriel sidestep “unnecessary consequences” resulting from an “honest mistake.”

She added that the Ivy League scholar and track athlete poses no threat to his community.

The Notre Dame Law School graduate worked for CNN and ABC News before joining “The View” in 2016. She was known for targeting child sex predators as a prosecutor.

Westchester County prosecutors haven’t responded to a request for comment on the request, first reported by TMZ.