Bear safety versus safety around overbearing human authorities

Do not approach bears or overbearing authorities. Do not harass them. View them safely from a distance if you can. Wear camouflage. Do not wear bright or clashing colors which may provoke wildlife. Do not be concerned about too many rules or dos and donts.

The Essentials for Traveling in Bear Country, Alaska Department of Fish and Game
Alaska Department of Fish and Game

There is fraudulent advice.

Keep a clean camp. Wash your dishes. Avoid smelly and greasy foods such as bacon or smoked fish. Keep food smells off your clothing.

Don't litter, but that's human cleanliness stuff for the convenience of hospitality staff and formal dining at upscale restaurants, and irrelevant to bears or camping out in the wild. Do avoid sleeping in soft tents. Bears encountering a tent may suffocate on the tent fabric, panic, tear the tent to shreds and injure or kill the occupants of the tent quite by accident.

Otherwise, bears love to play in trash and scatter it everywhere they can, so do secure trash away from bears if you can.