WATCH: Father gets $48 ticket for not using sidewalk

Ask any parent and they'll tell you one of the many things they have done in the name of getting their child to fall asleep.

Last week Danny Cohen took his daughter for a walk, something he regularly does before she gets on the train to sleepy town. 

To avoid the bumps and cracks of the irregular sidewalks on his street in Cote-St-Luc, Danny pushed her stroller on the edge of the road, barely a foot away from the pedestrian path.

To his surprise, he was stopped by police and given a ticket for not using the sidewalk.

"I asked them if they were kidding and they said 'No, absolutely not, we're going to give you a ticket for walking in the street,'" Cohen told CTV Montreal.

He tried to explain his reasoning but the officer was having none of it. Cohen even noted he wasn't on a main thoroughfare and the street is often used by many pedestrians and runners.

"It's much more comfortable on the street next to the sidewalks, because our sidewalks aren't in the best condition," he said. "I was trying to have my baby sleep."

Lawyer Eric Sutton while the officer could look the other way, walking on the street is against the Highway Safety Code.

"I think there might be a certain amount of generosity in a police officer's review of the situation," he said. "I think when someone is pushing a baby carriage; it's an issue of public safety."

Cohen's neighbours were just as surprised as he was by the ticket, saying they do the same thing all the time.

"I find that shocking because we walk on the street all the time and I had no idea it was against the law," one woman told CTV. "I would have gotten ticketed a million times over."

"There should be bigger fish to fry around here rather than someone walking on the street" another neighbour said.

According to one nearby resident there have been several complaints made about people walking on the street in the area. Montreal police did not confirm any reports.