Stabilizing convection-dominated flow problems using neural networks based on flux-limiting techniques