Children do misbehave because they do not receive rewards when they are good. Try giving the children some rewards for them to realize that being a good child will lead to rewards.
I'm an IT that works in a company that offers dog gates which are the best solution when it comes to restricting access into a room. A dog gate is common for stairways, rooms, patios, and kitchens.Because they want to look cool I guess.