He picked the wrong house to rob.

A would-be Queens burglar was killed when two brothers fought back as he tried to force his way into their home early Monday, stabbing him and slugging him over the head with a baseball bat, authorities said.

The brothers — ages 27 and 16 — told cops they were expecting a Domino’s pizza delivery and therefore thought nothing of answering a 2:45 a.m. knock at the door of their family’s Williamson Avenue home, sources said.

But when the younger brother opened the door, the robber tried to push past him and into the two-story home, cops said.

The teen tried to slam the door shut, but the 26-year-old suspect shoved back, and the two got into a scuffle that spilled onto their St. Albans street, police sources said.

The boy screamed for help, and his older brother came running out of the house clutching a baseball bat, according to sources.

“I just saw the [older] brother beating him . . . He just kept hitting him,” said next-door neighbor Wayne Barrett, who ran outside when he heard his dog barking at the commotion. “He was still standing over the guy when the police rolled up.”

At some point in the chaos, the younger brother called 911, telling cops that a man was trying to break in, sources said.

By the time cops arrived, the robber was lying unresponsive on the street with injuries to his head and a stab wound to his chest, police said.

The beaten man — whose name is being withheld by The Post because his family had not been notified of his death — was pronounced dead at Jamaica Hospital.

The two brothers were quizzed for several hours by cops at the 113th Precinct and released without charges. A high-ranking police source said the siblings’ mother and sister were home at the time and corroborated their story. The brothers’ teary mother was also questioned at the precinct and left clutching a white Bible.

Local surveillance footage also appeared to back up the brothers’ story, said a high-ranking police source.

“It’s justifiable homicide,’’ the source said. “You can defend yourself in your home and on your property.”

The brothers and their mother declined comment.

“It’s unfortunate that this man wound up with this outcome, but when you break into someone’s house, you have to deal with the consequences,’’ said the brothers’ cousin.

Additional reporting by Stephanie Pagones, Larry Celona and Kevin Sheehan