The warden and burgesses, when assembled according to law, shall have power to make, alter, repeal, and enforce such bylaws, orders, ordinances, and enactments as they shall deem suitable and proper, not inconsistent with this resolution or contrary to the laws of this state or of the United States, for the following purposes . . . to regulate the discharge of firearms in said borough . . . .