Using distances in predicates

I want to test if a player is in a certain range of an entity. To do so, I'm using predicates cause I want to have different range for different entity (like a 64 blocks range for tag distance64 and a 32 blocks range for tag distance32). What I have so far is an alternative predicate with each term being :

  {
    "condition": "minecraft:entity_properties",
    "entity": "this",
        "nbt": "{Tags:[distance32]}",
    "predicate": {
      "distance": {
        "absolute": {
          "min": 0.0,
          "max": 32.0
        }
      }
    }
  }

This predicate is called from

execute as @a at @s if entity @e[type=marker,predicate=test_distance] run say 1

But unfortunatelly, this doesn't seems to be working as I always get an output. So I tried to only work with the distance bit, getting this predicate :

{
  "condition": "minecraft:entity_properties",
  "entity": "this",
  "predicate": {
    "distance": {
      "absolute": {
        "min": 0,
        "max": 10
      }
    }
  }
}

But whatever the distance between me and the entity, the predicate is true. What am I doing wrong ? Can I even use the distance tag here ?

Continue to help post