The video of the purported assault which occurred in Okha town is being circulated on the social media.
In the clip, a mob is purportedly seen attacking two men, who look like beggars, said Inspector General (Rajkot Range) DN Patel.
Devbhumi-Dwarka district superintendent of police Rohan Anand said local police rushed to the spot after learning about the incident and rescued the two men from the mob.
"We came to know through a video that two persons who looked like beggars were being thrashed in Devbhumi Dwarka today. I have sent a DySP to the spot to probe the matter. We will take stern action against the accused," the IG said.
Mr Patel said an audio clip cautioning people about child-lifters roaming in the area has been doing rounds on the social media since the last few days.
Superintendents of Police of Jamnagar and Devbhumi Dwarka districts too have confirmed that claims made in the audio clip were false.
"In the audio clip, it has been claimed that a gang of around 300 persons have landed in Jamnagar and Devbhumi Dwarka districts to abduct children in the age group of 5 to 6. There is no truth in what has been claimed in the clip," said Mr Anand.
He said the two men beaten in Okha have been shifted to a safer place and further investigation is on.
Jamnagar SP Pradeep Sejul has appealed to people not to take law into their hands by blindly believing in such audio clips or social media posts.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.