A man has died in custody just days after he allegedly drove his ute at two officers before ploughing through the front of a police station.