A five-year-old boy has been rushed to hospital after being crushed by an old parking meter in Western Australia.