The movies have rarely done right by Jennifer Lopez, but the brashly entertaining “Hustlers” isn’t just the exception that proves the rule; it reconfigures her cinematic image with such brazen intelligence and purpose that it seems determined to make up for lost time. As Ramona, a one-woman supernova who reigns over a New York strip club, Lopez gives her most electrifying screen performance since “Out of Sight,” slipping the movie into her nonexistent pocket from the moment she strides out onto a neon-lighted stage in a rhinestone bodysuit.

Ramona seizes hold of the pole and proceeds to run through a series of gravity-resistant acrobatics that reportedly took the actress months to master but will have your jaw on the floor in seconds. You might recognize the song in the background as Fiona Apple’s “Criminal,” whose opening lyrics (“I’ve been a bad, bad girl/I’ve been careless with a delicate man”) cheekily sum up the premise and the allure of this feel-good-feel-bad movie.

Written and directed by Lorene Scafaria (“The Meddler”), adapting a 2015 New York magazine article by Jessica Pressler, “Hustlers” tells the loosely fictionalized story of a group of strippers who decide to go rogue in wake of the 2008 financial crisis. Led by Ramona and her quick-study protégé, Destiny (Constance Wu), they con their wealthy clients each night, teasing and drugging them and blithely stealing thousands of dollars they (probably) won’t miss the next morning.

As a movie about the seductions of the flesh and the satisfactions of a well-executed con, “Hustlers” is brassy and invigorating, its pleasures obvious and right there on the surface. As a portrait of women at work, bickering and bonding and doing whatever it takes to get some measure of their own back, it’s smarter and more grounded than Hollywood has given us reason to expect, and told with a welcome matter-of-factness that can melt without warning into tenderness. Ramona may enter the movie in a shower of dollar bills, but in the next scene, she’s on a rooftop folding Destiny in an enormous fur coat, pulling her close and shielding her from the cold night air.

A few beats later, she’s showing Destiny the ropes, giving her an impromptu pole-dancing lesson while another stripper (Cardi B) coaches her on her lap-dancing techniques. It’s 2007, and Destiny, the designated naive-outsider protagonist, is still finding her footing, never an easy thing to do in stiletto heels. In one arresting early shot, the camera follows Destiny as she wobbles onto the club floor on a busy night: We can sense her excitement as well as her discomfort as she slinks past her more experienced rivals onstage, and also her eagerness to please when a client beckons her over with a “Hey, Lucy Liu!”

In its you-are-there physicality, the tracking shot feels like a tip of the hat to Martin Scorsese’s “Goodfellas,” the granddaddy of all gleefully amoral rise-and-fall true-crime narratives. (It’s also an early demonstration of the dynamism of Todd Banhazl’s cinematography and the hot-hued vividness of Jane Musky’s production design.) As Scafaria has noted in interviews, Scorsese was one of several filmmakers who passed on her “Hustlers” script before she was given a crack at directing it herself, a behind-the-scenes footnote that can’t help but play like a wry commentary on the movie’s own hard-luck parable of female ascendancy.

In a shrewd touch, Scafaria toggles swiftly between past and present: The story is framed around a 2015 interview between Destiny, her stripping and scheming days clearly well behind her, and a journalist named Elizabeth (a fine Julia Stiles), a stand-in for Pressler. It’s a deft way to convey reams of exposition, but it also allows the movie to assess the emotional fallout of Destiny’s actions, to show the elasticity, intensity and, eventually, the boundaries of female friendship.

Perhaps the drollest of “Hustlers’” own tricks is the way it complicates and even weaponizes the audience’s gaze, turning a blatantly sexualized spectacle into a kind of strategic reclamation. It’s not a seamless or foolproof strategy, or one without its contradictions. Scafaria neither soft-pedals nor denies the basic, primal appeal of what her characters do for a living; she would hardly be giving them her full consideration if she did. Her strippers and sex workers may get ogled like all the others, but in this movie, they are also clearly and defiantly seen.