An alert off-duty Bayonne police officer arrested a man in a city bank Saturday when he recognized him as the man wanted to passing fraudulent checks in October, police said.

And wouldn’t you know it, the man, Stanley E. Berry, had just attempted to check another bad check at the bank, a teller told police.

The officer saw Berry, 45, of Union Street in Jersey City, inside Bank of America at 32nd Street and Broadway and investigated after realizing Berry was a wanted man. When the officer asked the suspect for identification, Berry gave him a driver’s license with a false name, Bayonne Lt. Eric Amato said.

Berry was charged with forgery, passing bad checks, hindering apprehension and providing false documents, Amato said, adding that he was identified as the person in the Oct. 22 incident at Provident Bank on Avenue C.