At the time of his brutal murder, millionaire Ted Ammon could not set the sophisticated burglar alarm of his ivy-covered Long Island mansion – because his wife Generosa had changed the secret code on the system installed by her new electrician boyfriend.

Generosa Ammon “kept on changing the alarm code,” said a source. “Ted didn’t know it. She didn’t want him to be in that house at all.

“It’s very scary that he might have been set up,” a person close to Ted Ammon said when told of the alarm settings. No alarm was transmitted the weekend of his murder last October.

The source said that Mrs. Ammon paid the alarm company to switch the code last summer, but her criminal lawyer, Michael Dowd, denied it.

Pelosi, whose adult criminal record stretches back to the 1980s, has been busted four times for drunk driving, in 1983, 1988, 1998 and 2001.

He has also been arrested for assaults, resisting arrest, possession of burglar’s tools, leaving the scene of an accident and traffic violations. He has also been diagnosed by a psychiatrist as suffering from a “severe personality disorder” with “severe anti-social tendencies.”