Product page or shop landing page
Show real low-stock numbers, only when they are true.
Each example below is the actual published output of the Product low stock notice widget for sample WooCommerce products with managed stock. The number is the product's real stock quantity; nothing is shown above the threshold, for backorders or for unmanaged stock.
A sample product with 3 in stock and the threshold set to 5: the default message 'Only {qty} left in stock!' with the warning icon. Sample site data.