Gas prices heading into the Fourth of July weekend are the highest they’ve been in four years but lower than recent highs, AAA said.