According to the Public Transport Authority, staging photographs on train tracks in Australia is illegal and seen as trespassing.
The West Australian reported a warning sign had been placed at level crossings to warn of the dangers as it was "dangerous and illegal".
"Being on the tracks or within the rail reserve, without a permit and other than for traversing a pedestrian crossing, is classified as trespassing," PTA communications manager David Hynes said.
While some people defended the mother by saying the tracks were no longer in use, others shut the theory down, saying freight trains still use the rail line in question.
"For those that are saying no trains you better do some research because freight trains still use it carrying shipping containers from the port," one person said.
Others took aim at the mother saying she's not fit to be a parent.
"It's a shame the cops didn't see it and do them for child endangerment."