What if the beans are in a sealed container and you only peeked twice? No. What if they’re in a vinegar-based sauce, like pickled beans? Slightly different—acidity slows bacteria—but even then, the two-hour rule is a good guideline. Unless you’re a professional food scientist with a pH meter, just play it safe.
And please don’t ask me about “bean paste” or “bean desserts.” Sweet beans are still beans. Sugar just gives the bacteria a disco ball.