A contractor or subcontractor having a duty to employ, direct, or control a laborer or mechanic employed in the performance of work contemplated by a contract to which this chapter applies that intentionally violates this chapter shall be fined under title 18, imprisoned for not more than six months, or both.