A 36-year-old man is due to appear in court in Elgin.