PHILADELPHIA — The Jets offense nearly gave up as many points as its defense Sunday.

In the 31-6 loss to the Eagles, the Philly defense scored 14 points while its offense only scored 17. One of the more frustrating parts of this 0-4 start for the Jets is their defense is actually playing pretty well. They limited the Eagles to 265 total yards and 189 yards passing — not bad numbers against a good Eagles team.

The Jets are entering dangerous territory where the defense could start resenting the offense.

“It is frustrating,” defensive end Leonard Williams told The Post. “It would be impossible to deny that. At the same time, this is the not the time to point or kick them when they’re down. It’s more like this is the time to make them rise to the occasion and let them know they can lean on us and let them know we’re a team and it’s all three phases and we have to come together.”

The defense did not have any takeaways and had just one sack, but there were times when it looked dominant. Against the Patriots two weeks ago, the defense buckled down and played well after a terrible first quarter.

“I think we did as much as we could defensively,” Williams said. “We still gave up some points. It wasn’t perfect. We still have to watch film and see what we can do better. We didn’t get any takeaways or scores on defense. That’s a big emphasis for us.”

Jets coach Adam Gase vowed that the offense will get better.

“I told those guys in there that I’ll get it fixed,” Gase said. “It’s on me, nobody else. That’s what we’re going to do.”

Running back Le’Veon Bell acknowledged the offense needs to pick it up.

“I think the defense played their tails off,” Bell said. “Special teams, always continually giving us sparks. Offensively we have to get better. Period. Just a lot. Once we get better offense we’ll look like a totally different team. We’ll get it turned around. I don’t know what day or game, or what’s gonna do it, but I know we’re gonna find a way to get the ship sailing in the right direction.”

The 10 sacks allowed by the Jets are their most since a Dec. 23, 2012 loss to the Chargers when they gave up 11. Of the 10 sacks, eight came against a four-man rush, according to ESPN.

David Fales entered the game at QB late in the fourth quarter when Luke Falk was being tested for a concussion. He is the fourth quarterback the Jets have used this season. It is the first time since 2005 the Jets have used four different quarterbacks.

The Jets have scored 17 points on offense, 15 points on defense and seven points on special teams this season.

DE Henry Anderson left the game with a shoulder injury and will undergo tests on Monday. … WR Robby Anderson was seen going into the X-ray room. It is not known what his injury is.

Eagles defensive end Brandon Graham had three sacks, two tackles for losses and five quarterback hurries, one of which produced the 51-yard pick-six by teammate, LB Nathan Gerry, that gave them a 14-0 lead.

Eagles CB Orlando Scandrick, who was signed off the street a week ago to help out their depleted secondary, sacked Jets QB Luke Falk, ripped the ball out of his hands and returned it 44 yards for the second Philadelphia defensive TD of the game.

Jets veteran right guard Brian Winters had an atrocious game. He was consistently manhandled by Graham, the Eagles DE who wrecked the game for the Jets.