How to make working Barbed Wire

Take this for instance.
When you go in a laser and it is on, you take damage. if you move out and back in again you take damage.
Take @Pika_Pokemon’s post for example:

""

is zis even related?

But if you move, you take damage! That is what the repeating lasers are for!