Pet wilding out!

My cat is stressing me out! He suddenly started trying to cross the street . He hasn’t done that ever until I caught him twice in two days. Anything I can do ?