In the Knicks court of law and lineups, Raymond Felton is innocent until proven guilty.

So the point guard who was arraigned Tuesday evening on two gun charges, is expected to practice Wednesday and then play for the Knicks in Miami Thursday, The Post has learned.

That may have been the only bright spot for Felton in recent tumultuous weeks. Felton surrendered to police early Tuesday and then was charged with two counts of weapons possession, one felony and one misdemeanor — facing a maximum of seven years in prison. Felton’s case was adjourned until June 2 and the Knicks point guard left Manhattan Criminal Court on Tuesday night on $25,000 cash bond, posted by his mother.

Felton, under a restraining order, departed without commenting on the latest troubling saga that began when his estranged wife, Ariane Raymondo-Felton, who recently filed for divorce, allegedly brought his unlicensed handgun to police at the 20th Precinct on the Upper West Side.

Now the consequences begin.

The NBA is going to wait to see what the legal ramifications are for Felton. So, because there are no travel restrictions, Felton is expected to play against the Heat. The Knicks declined to issue any comment Tuesday.

In the league’s most notorious gun case, that of Gilbert Arenas in 2010, the then Wizards’ guard was suspended in January for the remainder of the season. But Arenas and teammate Javaris Crittenton brought weapons into an NBA locker room.