Mayor Adams — who’s under heavy scrutiny over his handling of the city’s migrant crisis — fired back in all directions Thursday, blasting critics on the left as “hypocritical” for questioning his weakening of a local shelter law, while vowing to wage legal war against upstate Republicans who are refusing to help house asylum seekers.

Late Wednesday, Adams issued an executive order suspending key components of the city’s longstanding right-to-shelter law, including a provision that bars the city from placing families with kids in congregate, dorm-style shelters. Homeless advocates and elected Democrats rapidly ripped the move as dangerous and pointed to data showing that sheltering kids in congregate settings increases the likelihood of sexual abuse.