I've been living in Thailand since 2003, initially I worked for a university in the Chonburi province and since 2017 I'm staying in Loei in the middle of nowhere and have never had any security/safety related issues. I commuted from home to the university either driving my truck or riding my Kawasaki Ninja 650, you have to be careful and adopt a defensive way of driving.
Obviously, dragging in the hot corners that exist in all tourist places beyond a certain hour can be more risky, but the danger will come rather from expats under influence than from Thais, who will be more likely to protect you than attack you.