Importance of long-range interactions in chemical reactions at cold and ultracold temperatures