With the Fourth of July upon us, Mainers are gearing up for their celebrations. If you plan on lighting up the sky, you may want to check to see if that stash of pyrotechnics will get you into trouble.

Since 2012, it has been legal in Maine to buy and sell fireworks. While many areas of the state allow the use of fireworks, some towns and cities have enacted bans on the use and sale of consumer grade fireworks. Bangor for instance has a ban of both the sale and use of fireworks. Fines range from $100 to $1,000 for each offense.

It's Illegal To Use Fireworks In These Bangor Area Towns:

Before you launch your fireworks, it's a good idea to check with your town office. Many communities have time restrictions as to when consumer grade fireworks are permitted.

Brewer, for example, has a designated area where use is permitted. According to the ordnance, "The use of consumer fireworks shall be restricted to those areas of the City of Brewer that permit the discharge of shotguns, muzzle loaders, black powder guns, revolvers and pistols." Using fireworks in areas within the red section of this map is not permitted.

Towns with restrictions on fireworks are listed on the Maine State Fire Marshal's website.