A college freshman pleaded guilty Tuesday to fooling Secret Service agents and sneaking onto Mar-a-Lago while President Trump was in town over Thanksgiving.

Mark Lindblom, 19, apologized to a federal magistrate, saying he didn’t mean any harm when he infiltrated the swanky Palm Beach club.

“I wanted to see how far I could get,” Lindblom told Magistrate Judge William Matthewman, according to the Palm Beach Post.

The University of Wisconsin business major had been visiting his grandparents, who are members of a nearby country club, Nov. 23 when he decided to walk down the beach the resorts share.

He then got in line with Mar-a-Lago members and guests waiting to pass through a metal detector to get in.

Lindblom tricked Secret Service agents into thinking he was a club member and then wandered around the grounds for 20 minutes before he was arrested.

The president and his family were at the so-called “Winter White House” for the holiday.

Assistant US Attorney John McMillan said the investigation showed the teen’s only goal was to snap some photos.

“We have no reason to believe he had a political, criminal or terroristic purpose,” McMillan said. “It was a foolish decision he did on a lark.”

McMillan said security has since been tightened and that Lindblom wouldn’t be able to get in now.

Lindblom was slapped with a year of probation for the charge of entering a restricted area.

In March, agents also let Chinese national Yujing Zhang, 33, into the club after she allegedly told them she was there to use the pool. She was later found with a trove of high-tech gizmos.

She has pleaded not guilty to charges of lying to federal agents and illegal entering.