Gilman man dies in farm accident